pub struct Invalid<F>where
F: Fsm,{
pub state: <F as Fsm>::State,
pub event: <F as Fsm>::Event,
}Expand description
Promotion of an invalid state transition to an error.
Fields§
§state: <F as Fsm>::StateFSM state when the event was sent.
event: <F as Fsm>::EventEvent sent to the FSM.
Trait Implementations§
Source§impl<F> Error for Invalid<F>where
F: Fsm,
impl<F> Error for Invalid<F>where
F: Fsm,
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl<F> Freeze for Invalid<F>
impl<F> RefUnwindSafe for Invalid<F>
impl<F> Send for Invalid<F>
impl<F> Sync for Invalid<F>
impl<F> Unpin for Invalid<F>
impl<F> UnwindSafe for Invalid<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