pub enum LifecycleError {
InvalidTransition {
from: LifecycleState,
transition: LifecycleTransition,
},
CallbackFailed {
transition: LifecycleTransition,
result: TransitionResult,
},
NodeFinalized,
}Expand description
Error type for lifecycle transitions.
Variants§
InvalidTransition
The requested transition is not valid from the current state.
Fields
§
from: LifecycleStateThe state the node was in when the transition was attempted.
§
transition: LifecycleTransitionThe transition that was requested.
CallbackFailed
The transition callback returned a non-success result.
Fields
§
transition: LifecycleTransitionThe transition that was attempted.
§
result: TransitionResultThe result returned by the callback.
NodeFinalized
The node is in the Finalized state and cannot transition.
Trait Implementations§
Source§impl Clone for LifecycleError
impl Clone for LifecycleError
Source§fn clone(&self) -> LifecycleError
fn clone(&self) -> LifecycleError
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 LifecycleError
impl Debug for LifecycleError
Source§impl PartialEq for LifecycleError
impl PartialEq for LifecycleError
impl Copy for LifecycleError
impl Eq for LifecycleError
impl StructuralPartialEq for LifecycleError
Auto Trait Implementations§
impl Freeze for LifecycleError
impl RefUnwindSafe for LifecycleError
impl Send for LifecycleError
impl Sync for LifecycleError
impl Unpin for LifecycleError
impl UnsafeUnpin for LifecycleError
impl UnwindSafe for LifecycleError
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