Struct wlan_hw_sim::event::branch::DynamicTryOr
source · pub struct DynamicTryOr<T>(/* private fields */);
Trait Implementations§
source§impl<T: Clone> Clone for DynamicTryOr<T>
impl<T: Clone> Clone for DynamicTryOr<T>
source§fn clone(&self) -> DynamicTryOr<T>
fn clone(&self) -> DynamicTryOr<T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<T: Debug> Debug for DynamicTryOr<T>
impl<T: Debug> Debug for DynamicTryOr<T>
source§impl<S, E, H> Handler<S, E> for DynamicTryOr<Vec<H>>
impl<S, E, H> Handler<S, E> for DynamicTryOr<Vec<H>>
source§fn call(&mut self, state: &mut S, event: &E) -> Handled<Self::Output>
fn call(&mut self, state: &mut S, event: &E) -> Handled<Self::Output>
Reacts to an event with some state. Read more
source§fn map<U, F>(self, f: F) -> Map<Self, F>
fn map<U, F>(self, f: F) -> Map<Self, F>
Maps the output of the event handler using the given function.
source§fn and<H2>(self, handler: H2) -> And<Self, H2>
fn and<H2>(self, handler: H2) -> And<Self, H2>
Executes the handler followed by the given handler if and only if the event is matched by
the first.
source§fn and_then<H2, F>(self, f: F) -> AndThen<Self, F>
fn and_then<H2, F>(self, f: F) -> AndThen<Self, F>
Executes the handler followed by the given function if and only if the event is matched by
the first. The function is given the output of the handler and must return a compatible
handler to execute next.
source§fn or<H2>(self, handler: H2) -> Or<Self, H2>
fn or<H2>(self, handler: H2) -> Or<Self, H2>
Executes the handler followed by the given handler if and only if the event is not
matched by the first.
source§fn context<C, O, D>(self, context: C) -> Context<Self, C, O, D>
fn context<C, O, D>(self, context: C) -> Context<Self, C, O, D>
Provides context for fallible outputs (like
Result
s).source§fn expect_matches_times<R>(self, expected: R) -> ExpectMatchesTimes<Self, R>
fn expect_matches_times<R>(self, expected: R) -> ExpectMatchesTimes<Self, R>
Panics if the event handler does not match an event a number of times within the specified
range. Read more
impl<T: Copy> Copy for DynamicTryOr<T>
Auto Trait Implementations§
impl<T> Freeze for DynamicTryOr<T>where
T: Freeze,
impl<T> RefUnwindSafe for DynamicTryOr<T>where
T: RefUnwindSafe,
impl<T> Send for DynamicTryOr<T>where
T: Send,
impl<T> Sync for DynamicTryOr<T>where
T: Sync,
impl<T> Unpin for DynamicTryOr<T>where
T: Unpin,
impl<T> UnwindSafe for DynamicTryOr<T>where
T: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more