Module tokio::signal::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

  • 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.
  • Represents a stream which receives “ctrl-close” notitifications sent to the process via ‘SetConsoleCtrlHandler’.
  • Represents a stream which receives “ctrl-logoff” notitifications sent to the process via ‘SetConsoleCtrlHandler’.
  • Represents a stream which receives “ctrl-shutdown” notitifications 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.
  • Creates a new stream which receives “ctrl-close” notifications sent to the process.
  • Creates a new stream which receives “ctrl-logoff” notifications sent to the process.
  • Creates a new stream which receives “ctrl-shutdown” notifications sent to the process.