#[non_exhaustive]pub enum TerminationAttemptPhase {
Preflight,
Interrupt,
Terminate,
Kill,
}Expand description
Termination phase where an attempt error was recorded.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Preflight
Initial process status check before any termination signal is sent.
Interrupt
Graceful interrupt phase.
Only emitted on Unix, where this is the SIGINT step that begins the graceful escalation.
Windows has no targetable SIGINT analogue: GenerateConsoleCtrlEvent cannot deliver
CTRL_C_EVENT to a single child group, and CTRL_BREAK_EVENT is harsher than a Unix
interrupt, so Windows skips this phase and goes straight to Self::Terminate.
Terminate
Graceful terminate phase.
On Unix this is the SIGTERM step that follows the SIGINT phase. On Windows this
represents the single CTRL_BREAK_EVENT graceful step (the only console control event
GenerateConsoleCtrlEvent can target at a nonzero process group); it sits in this phase
rather than Self::Interrupt because CTRL_BREAK_EVENT is closer in severity to
SIGTERM than to SIGINT.
Kill
Forceful kill phase.
Trait Implementations§
Source§impl Clone for TerminationAttemptPhase
impl Clone for TerminationAttemptPhase
Source§fn clone(&self) -> TerminationAttemptPhase
fn clone(&self) -> TerminationAttemptPhase
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more