Spec-Zone.ru › Tokio

Module windows

Available on Windows and crate feature signal only.

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.

MIT License
Copyright © Tokio Contributors
https://docs.rs/tokio/1.53.1/tokio/signal/windows/index.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API