pub enum SupervisorEvent {
Show 13 variants
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,
StopUnconfirmed {
launch: u64,
pid: u32,
},
Adopted {
launch: u64,
pid: u32,
},
ForeignExited {
launch: u64,
pid: u32,
},
}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).
StopUnconfirmed
A stop was not confirmed (the child is still there after its grace and the kill): no replacement starts until it is gone (rightkit#936 b2).
Adopted
The child exited on purpose after forwarding; the instance with pid is supervised by
identity now (ExitAction::AdoptForeign).
ForeignExited
The adopted foreign instance is gone.