pub struct TransitionError<S>where
S: MachineState,{
pub from: S,
pub event: &'static str,
pub kind: TransitionErrorKind,
}Expand description
Represents an error that occurred while attempting a transition.
Fields§
§from: S§event: &'static str§kind: TransitionErrorKindImplementations§
Source§impl<S> TransitionError<S>where
S: MachineState,
impl<S> TransitionError<S>where
S: MachineState,
pub fn invalid_transition(from: S, event: &'static str) -> TransitionError<S>
pub fn guard_failed( from: S, event: &'static str, guard: &'static str, ) -> TransitionError<S>
Trait Implementations§
Source§impl<S> Clone for TransitionError<S>where
S: Clone + MachineState,
impl<S> Clone for TransitionError<S>where
S: Clone + MachineState,
Source§fn clone(&self) -> TransitionError<S>
fn clone(&self) -> TransitionError<S>
Returns a duplicate 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<S> Debug for TransitionError<S>where
S: Debug + MachineState,
impl<S> Debug for TransitionError<S>where
S: Debug + MachineState,
Source§impl<S> PartialEq for TransitionError<S>where
S: PartialEq + MachineState,
impl<S> PartialEq for TransitionError<S>where
S: PartialEq + MachineState,
impl<S> Eq for TransitionError<S>where
S: Eq + MachineState,
impl<S> StructuralPartialEq for TransitionError<S>where
S: MachineState,
Auto Trait Implementations§
impl<S> Freeze for TransitionError<S>where
S: Freeze,
impl<S> RefUnwindSafe for TransitionError<S>where
S: RefUnwindSafe,
impl<S> Send for TransitionError<S>
impl<S> Sync for TransitionError<S>
impl<S> Unpin for TransitionError<S>where
S: Unpin,
impl<S> UnwindSafe for TransitionError<S>where
S: 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