pub struct TransitionError<S> {
pub from: S,
pub to: S,
pub reason: String,
}Expand description
Error returned when a state transition is invalid.
Fields§
§from: S§to: S§reason: StringTrait Implementations§
Source§impl<S: Clone> Clone for TransitionError<S>
impl<S: Clone> Clone for TransitionError<S>
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> Debug for TransitionError<S>
impl<S: Debug> Debug for TransitionError<S>
Source§impl<S: Display> Display for TransitionError<S>
impl<S: Display> Display for TransitionError<S>
Source§impl<S: Debug + Display> Error for TransitionError<S>
impl<S: Debug + Display> Error for TransitionError<S>
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()
Source§impl<S: PartialEq> PartialEq for TransitionError<S>
impl<S: PartialEq> PartialEq for TransitionError<S>
impl<S: Eq> Eq for TransitionError<S>
impl<S> StructuralPartialEq for TransitionError<S>
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>where
S: Send,
impl<S> Sync for TransitionError<S>where
S: Sync,
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