pub enum FailurePhase {
OnStart,
OnRun,
OnStop,
OnRunThenOnStop,
}Expand description
Represents the phase during which an actor failure occurred.
This enum is used to identify which lifecycle method of an actor
caused a failure, enabling more precise error handling and debugging.
Each phase corresponds to a specific method in the Actor trait.
Variants§
OnStart
Actor failed during the on_start lifecycle hook.
OnRun
Actor failed during execution in the on_run lifecycle hook.
OnStop
Actor failed during the on_stop lifecycle hook.
OnRunThenOnStop
Trait Implementations§
Source§impl Clone for FailurePhase
impl Clone for FailurePhase
Source§fn clone(&self) -> FailurePhase
fn clone(&self) -> FailurePhase
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 FailurePhase
impl Debug for FailurePhase
Source§impl Display for FailurePhase
Implements Display for FailurePhase to provide human-readable error messages.
impl Display for FailurePhase
Implements Display for FailurePhase to provide human-readable error messages.
This allows FailurePhase to be easily converted to strings for logging,
error reporting, and debugging purposes.
Source§impl PartialEq for FailurePhase
impl PartialEq for FailurePhase
impl Copy for FailurePhase
impl Eq for FailurePhase
impl StructuralPartialEq for FailurePhase
Auto Trait Implementations§
impl Freeze for FailurePhase
impl RefUnwindSafe for FailurePhase
impl Send for FailurePhase
impl Sync for FailurePhase
impl Unpin for FailurePhase
impl UnwindSafe for FailurePhase
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