hyperlane-plugin-shutdown 22.0.5

A shutdown plugin for the Hyperlane framework, turning the termination signals of the operating system into a graceful shutdown of the server.
Documentation
1
2
3
4
5
6
7
use super::*;

/// The configuration the plugin was given, when it was given one.
pub(super) static CONFIG: OnceLock<ShutdownConfig> = OnceLock::new();

/// The handler that runs when the server stops, when one was set.
pub(super) static HANDLER: OnceLock<ServerControlHookHandler<()>> = OnceLock::new();