Enum ctrlc::SignalType [−][src]
pub enum SignalType { Ctrlc, Termination, Other(Signal), }
Expand description
A cross-platform way to represent Ctrl-C or program termination signal. Other
signals/events are supported via Other
-variant.
Variants
Ctrl-C
Program termination
Maps to SIGTERM
on *nix, CTRL_CLOSE_EVENT
on Windows.
Other signal/event using platform-specific data
Tuple Fields of Other
0: Signal