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

Ctrlc

Ctrl-C

Termination

Program termination Maps to SIGTERM on *nix, CTRL_CLOSE_EVENT on Windows.

Other

Other signal/event using platform-specific data

Tuple Fields of Other

0: Signal

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.