Module tokio::signal::windows[][src]

This is supported on Windows and crate feature signal only.
Expand description

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

Represents a stream which receives “ctrl-break” notifications sent to the process via SetConsoleCtrlHandler.

Represents a stream which receives “ctrl-c” notifications sent to the process via SetConsoleCtrlHandler.

Functions

Creates a new stream which receives “ctrl-break” notifications sent to the process.

Creates a new stream which receives “ctrl-c” notifications sent to the process.