Expand description
Termination signal helpers.
This module only waits for process termination signals. Product crates remain responsible for recording audit events, stopping background tasks, flushing buffers, and closing database or network handles in their preferred order.
Structs§
- Shutdown
Coordinator - Ordered shutdown phase coordinator.
- Shutdown
Phase Report - Report for one executed shutdown phase.
- Shutdown
Report - Aggregate report for a shutdown run.
Enums§
- Runtime
Signal Error - Errors returned while installing signal listeners.
- Shutdown
Phase Status - Final status for one shutdown phase.
- Termination
Signal - Termination signal observed by the runtime.
Functions§
- log_
shutdown_ report - Logs the aggregate result of a shutdown run.
- spawn_
termination_ signal_ handler - Spawns a task that waits for a termination signal, cancels
shutdown_token, and then runson_signal. - wait_
for_ termination_ signal - Waits until the process receives a termination signal.