Expand description
Cooperative shutdown and drain handling. Graceful shutdown and single-node activity drain coordination.
Structs§
- Drain
State - Cloneable gate shared by transports, dispatchers, worker streams, and the shutdown coordinator.
- Shutdown
Report - 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 viaShutdownOutcome::exit_code; the report is how the rest crosses the process boundary.
Enums§
- Shutdown
Outcome - Process exit selected by the shutdown coordinator.
Functions§
- drain_
after_ first_ signal - Run the graceful drain after the first termination signal.