Expand description
Simple handling of CTRL-C for CLI programs.
See crate ::ctrlc
.
Enums§
- Error
- Ctrl-C error.
- Signal
Type - 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