Available 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”,
“ctrl-break”, “ctrl-logoff”, “ctrl-shutdown”, and “ctrl-close”
notifications. These events are listened for via the SetConsoleCtrlHandler
function which receives the corresponding windows_sys
event type.
Structs§
- Represents a listener which receives “ctrl-break” notifications sent to the process via
SetConsoleCtrlHandler
. - Represents a listener which receives “ctrl-c” notifications sent to the process via
SetConsoleCtrlHandler
. - Represents a listener which receives “ctrl-close” notifications sent to the process via
SetConsoleCtrlHandler
. - Represents a listener which receives “ctrl-logoff” notifications sent to the process via
SetConsoleCtrlHandler
. - Represents a listener which receives “ctrl-shutdown” notifications sent to the process via
SetConsoleCtrlHandler
.
Functions§
- Creates a new listener which receives “ctrl-break” notifications sent to the process.
- Creates a new listener which receives “ctrl-c” notifications sent to the process.
- Creates a new listener which receives “ctrl-close” notifications sent to the process.
- Creates a new listener which receives “ctrl-logoff” notifications sent to the process.
- Creates a new listener which receives “ctrl-shutdown” notifications sent to the process.