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§
Sourcefn is_shutting_down(&self) -> bool
fn is_shutting_down(&self) -> bool
Check if the server is shutting down.
Sourcefn shutdown_phase(&self) -> Option<ShutdownPhase>
fn shutdown_phase(&self) -> Option<ShutdownPhase>
Get the current shutdown phase, if available.