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
8
9
10
11
12
/// The configuration of the shutdown plugin.
#[derive(Clone, Debug)]
pub struct ShutdownConfig {
    /// Whether the server also stops when the process is terminated.
    pub watch_terminate: bool,
    /// The message the default handler writes when the server stops.
    pub message: String,
}

/// The plugin that stops the server when the process is asked to.
#[derive(Clone, Copy, Debug, Default)]
pub struct ShutdownPlugin;