Skip to main content

Module signals

Module signals 

Source
Expand description

Process-signal subscriptions and optional application-panic notifications.

Enable handling with System::enable_signals or Builder::signals. Only one system handles process signals at a time; subscriptions belong to the current system. Unix delivers hangup, interrupt, termination, and quit signals, plus best-effort fatal-signal notifications with Builder::fatal_signals. Windows delivers Ctrl-C as Signal::Int. Application panics additionally require Builder::panic_handling.

Enums§

PanicSource
Source of a panic signal.
Signal
Process and application signals delivered to the runtime.

Functions§

is_enabled
Returns whether any system currently owns process signal handling.
signal
Registers interest in the next batch of signals.