pub enum Sent<F>where
F: Fsm,{
Valid(<F as Fsm>::State),
Invalid(<F as Fsm>::State, <F as Fsm>::Event),
}Expand description
State after sending an event, and whether it is the result of a valid transition.
Invalid values can be converted to errors via Sent::try_valid().
Variants§
Valid(<F as Fsm>::State)
The next state was the result of a valid state transition.
It may be identical to the previous state.
Invalid(<F as Fsm>::State, <F as Fsm>::Event)
The sent event was invalid, and the state is unchanged.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<F> Freeze for Sent<F>
impl<F> RefUnwindSafe for Sent<F>
impl<F> Send for Sent<F>
impl<F> Sync for Sent<F>
impl<F> Unpin for Sent<F>
impl<F> UnwindSafe for Sent<F>
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