[−][src]Module tokio::signal::windows
This is supported on crate feature
signal
only.Windows-specific types for signal handling.
This module is only defined on Windows and allows receiving "ctrl-c"
and "ctrl-break" notifications. These events are listened for via the
SetConsoleCtrlHandler
function which receives events of the type
CTRL_C_EVENT
and CTRL_BREAK_EVENT
.
Structs
CtrlBreak | Represents a stream which receives "ctrl-break" notifications sent to the process
via |
CtrlC | Represents a stream which receives "ctrl-c" notifications sent to the process
via |
Functions
ctrl_break | Creates a new stream which receives "ctrl-break" notifications sent to the process. |
ctrl_c | Creates a new stream which receives "ctrl-c" notifications sent to the process. |