Enum SignalType
pub enum SignalType
A cross-platform way to represent Ctrl-C or program termination signal. Other
signals/events are supported via Other-variant.
Variants
-
Ctrlc Ctrl-C
-
Termination Program termination Maps to
SIGTERMandSIGHUPon *nix,CTRL_CLOSE_EVENTon Windows.-
Other(Signal) Other signal/event using platform-specific data
Trait Implementations
impl Debug for SignalType
fn fmt(&self, f: &mut Formatter<'_>) -> Result