Skip to main content

Module shutdown

Module shutdown 

Source
Expand description

Cooperative shutdown and drain handling. Graceful shutdown and single-node activity drain coordination.

Structs§

DrainState
Cloneable gate shared by transports, dispatchers, worker streams, and the shutdown coordinator.
ShutdownReport
Everything one graceful shutdown observed, for the outcome record the dying server writes into the death note (crate::control::outcome). The process exit code still collapses this to the #207 contract via ShutdownOutcome::exit_code; the report is how the rest crosses the process boundary.

Enums§

ShutdownOutcome
Process exit selected by the shutdown coordinator.

Functions§

drain_after_first_signal
Run the graceful drain after the first termination signal.