pub enum FSMError<S: Display> {
NoTransitionWithError(S),
NoTransition,
InternalError(S),
UnknownEvent(S),
InvalidEvent(S, S),
}Expand description
FSMError is the error type for the FSM.
Variants§
Trait Implementations§
Source§impl<S: Display> Error for FSMError<S>
impl<S: Display> Error for FSMError<S>
1.30.0§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§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
impl<S: Eq + Display> Eq for FSMError<S>
impl<S: Display> StructuralPartialEq for FSMError<S>
Auto Trait Implementations§
impl<S> Freeze for FSMError<S>where
S: Freeze,
impl<S> RefUnwindSafe for FSMError<S>where
S: RefUnwindSafe,
impl<S> Send for FSMError<S>where
S: Send,
impl<S> Sync for FSMError<S>where
S: Sync,
impl<S> Unpin for FSMError<S>where
S: Unpin,
impl<S> UnwindSafe for FSMError<S>where
S: UnwindSafe,
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more