pub enum RunTransitionError {
InvalidTransition {
from: RunState,
to: RunState,
},
}Expand description
Typed errors for lifecycle transition construction.
Variants§
InvalidTransition
The (from -> to) transition is not allowed by the canonical transition table.
Trait Implementations§
Source§impl Clone for RunTransitionError
impl Clone for RunTransitionError
Source§fn clone(&self) -> RunTransitionError
fn clone(&self) -> RunTransitionError
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 Debug for RunTransitionError
impl Debug for RunTransitionError
Source§impl Display for RunTransitionError
impl Display for RunTransitionError
Source§impl Error for RunTransitionError
impl Error for RunTransitionError
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 PartialEq for RunTransitionError
impl PartialEq for RunTransitionError
impl Copy for RunTransitionError
impl Eq for RunTransitionError
impl StructuralPartialEq for RunTransitionError
Auto Trait Implementations§
impl Freeze for RunTransitionError
impl RefUnwindSafe for RunTransitionError
impl Send for RunTransitionError
impl Sync for RunTransitionError
impl Unpin for RunTransitionError
impl UnsafeUnpin for RunTransitionError
impl UnwindSafe for RunTransitionError
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