pub enum Errors<EventType, StateType, ErrorType> {
OK,
InternalError(EventType, StateType, ErrorType),
NoTransition(EventType, StateType),
TransitionFailure,
}
Expand description
Errors that can occur when running FSMs
Variants
OK
InternalError(EventType, StateType, ErrorType)
internal error at a given place that can be generated by transition implementation
NoTransition(EventType, StateType)
the requested transition does not exist, FSM needs to be shut down
TransitionFailure
transition failed, you have to shut down the FSM
Trait Implementations
impl<EventType, StateType, ErrorType> StructuralEq for Errors<EventType, StateType, ErrorType>
impl<EventType, StateType, ErrorType> StructuralPartialEq for Errors<EventType, StateType, ErrorType>
Auto Trait Implementations
impl<EventType, StateType, ErrorType> RefUnwindSafe for Errors<EventType, StateType, ErrorType> where
ErrorType: RefUnwindSafe,
EventType: RefUnwindSafe,
StateType: RefUnwindSafe,
impl<EventType, StateType, ErrorType> Send for Errors<EventType, StateType, ErrorType> where
ErrorType: Send,
EventType: Send,
StateType: Send,
impl<EventType, StateType, ErrorType> Sync for Errors<EventType, StateType, ErrorType> where
ErrorType: Sync,
EventType: Sync,
StateType: Sync,
impl<EventType, StateType, ErrorType> Unpin for Errors<EventType, StateType, ErrorType> where
ErrorType: Unpin,
EventType: Unpin,
StateType: Unpin,
impl<EventType, StateType, ErrorType> UnwindSafe for Errors<EventType, StateType, ErrorType> where
ErrorType: UnwindSafe,
EventType: UnwindSafe,
StateType: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more