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 SIGTERM and SIGHUP on *nix, CTRL_CLOSE_EVENT on Windows.

Other(Signal)

Other signal/event using platform-specific data

Trait Implementations

impl Debug for SignalType

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Auto Trait Implementations

impl Freeze for SignalType

impl RefUnwindSafe for SignalType

impl Send for SignalType

impl Sync for SignalType

impl Unpin for SignalType

impl UnsafeUnpin for SignalType

impl UnwindSafe for SignalType

Blanket Implementations

impl<T> Any for SignalType where T: 'static + ?Sized,

impl<T> Borrow<T> for SignalType where T: ?Sized,

impl<T> BorrowMut<T> for SignalType where T: ?Sized,

impl<T> From<T> for SignalType

impl<T, U> Into<U> for SignalType where U: From<T>,

impl<T, U> TryFrom<U> for SignalType where U: Into<T>,

impl<T, U> TryInto<U> for SignalType where U: TryFrom<T>,