pub enum LifecycleError {
InvalidTransition {
agent_id: AgentId,
from: AgentState,
event: LifecycleEvent,
},
}Expand description
Errors emitted by the lifecycle controller.
Variants§
InvalidTransition
Transition was not permitted from the current state.
Fields
§
from: AgentStateState prior to the attempted transition.
§
event: LifecycleEventEvent that triggered the failure.
Trait Implementations§
Source§impl Debug for LifecycleError
impl Debug for LifecycleError
Source§impl Display for LifecycleError
impl Display for LifecycleError
Source§impl Error for LifecycleError
impl Error for LifecycleError
1.30.0§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§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<LifecycleError> for KernelError
impl From<LifecycleError> for KernelError
Source§fn from(source: LifecycleError) -> Self
fn from(source: LifecycleError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for LifecycleError
impl RefUnwindSafe for LifecycleError
impl Send for LifecycleError
impl Sync for LifecycleError
impl Unpin for LifecycleError
impl UnwindSafe for LifecycleError
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more