Module windows

Source
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§

CtrlBreak
Represents a listener which receives “ctrl-break” notifications sent to the process via SetConsoleCtrlHandler.
CtrlC
Represents a listener which receives “ctrl-c” notifications sent to the process via SetConsoleCtrlHandler.
CtrlClose
Represents a listener which receives “ctrl-close” notifications sent to the process via SetConsoleCtrlHandler.
CtrlLogoff
Represents a listener which receives “ctrl-logoff” notifications sent to the process via SetConsoleCtrlHandler.
CtrlShutdown
Represents a listener which receives “ctrl-shutdown” notifications sent to the process via SetConsoleCtrlHandler.

Functions§

ctrl_break
Creates a new listener which receives “ctrl-break” notifications sent to the process.
ctrl_c
Creates a new listener which receives “ctrl-c” notifications sent to the process.
ctrl_close
Creates a new listener which receives “ctrl-close” notifications sent to the process.
ctrl_logoff
Creates a new listener which receives “ctrl-logoff” notifications sent to the process.
ctrl_shutdown
Creates a new listener which receives “ctrl-shutdown” notifications sent to the process.