Enum ctrlc2::SignalType
source · 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§
Ctrlc
Ctrl-C
Termination
Program termination
Maps to SIGTERM
and SIGHUP
on *nix, CTRL_CLOSE_EVENT
on Windows.
Other(Signal)
Other signal/event using platform-specific data
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SignalType
impl RefUnwindSafe for SignalType
impl Send for SignalType
impl Sync for SignalType
impl Unpin for SignalType
impl UnwindSafe for SignalType
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more