Skip to main content

set_exit_class

Function set_exit_class 

Source
pub fn set_exit_class(class: ExitClass)
Expand description

Record how this process is ending.

Set by the panic hook, by the signal task before std::process::exit, and on the clean path from the run’s termination reason. Never derived from an exit code: a cancelled turn and a SIGINT both exit 130, so a code-based derivation would report every Esc as a signal.