Module ctrlc

Source
Expand description

Simple handling of CTRL-C for CLI programs.

See crate ::ctrlc.

Enums§

Error
Ctrl-C error.
SignalType
A cross-platform way to represent Ctrl-C or program termination signal. Other signals/events are supported via Other-variant.

Functions§

set_handler
Register signal handler for Ctrl-C.
try_set_handler
The same as ctrlc::set_handler but errors if a handler already exists for the signal(s).

Type Aliases§

Signal
Platform specific signal type