pub enum SupervisorEvent {
Started {
launch: u64,
pid: u32,
},
Ready {
launch: u64,
},
Exited {
launch: u64,
code: Option<i32>,
success: bool,
},
Unhealthy {
launch: u64,
consecutive_failures: u32,
},
StartupTimedOut {
launch: u64,
},
LaunchFailed {
error: String,
},
RestartScheduled {
delay: Duration,
},
AwaitingDemand,
Exhausted,
Stopped,
}Expand description
What happened, content-free. launch is the 1-based count of children started.
Variants§
Started
Ready
The child answered its first probe.
Exited
The child exited by itself.
Unhealthy
A child that had been healthy failed consecutive_failures probes in a row; it is stopped.
StartupTimedOut
The child never answered a probe within the policy’s startup timeout; it is stopped.
LaunchFailed
The launch closure failed (never started a child).
RestartScheduled
AwaitingDemand
Exhausted
The restart budget is spent.
Stopped
The supervisor will not start another child (a policy that never restarts, or stop).
Trait Implementations§
Source§impl Clone for SupervisorEvent
impl Clone for SupervisorEvent
Source§impl Debug for SupervisorEvent
impl Debug for SupervisorEvent
impl Eq for SupervisorEvent
Source§impl PartialEq for SupervisorEvent
impl PartialEq for SupervisorEvent
impl StructuralPartialEq for SupervisorEvent
Auto Trait Implementations§
impl Freeze for SupervisorEvent
impl RefUnwindSafe for SupervisorEvent
impl Send for SupervisorEvent
impl Sync for SupervisorEvent
impl Unpin for SupervisorEvent
impl UnsafeUnpin for SupervisorEvent
impl UnwindSafe for SupervisorEvent
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