Skip to main content

ShutdownAware

Trait ShutdownAware 

Source
pub trait ShutdownAware {
    // Required methods
    fn is_shutting_down(&self) -> bool;
    fn shutdown_phase(&self) -> Option<ShutdownPhase>;
}
Expand description

Extension trait for checking shutdown status from request context.

Required Methods§

Source

fn is_shutting_down(&self) -> bool

Check if the server is shutting down.

Source

fn shutdown_phase(&self) -> Option<ShutdownPhase>

Get the current shutdown phase, if available.

Implementors§