pub enum ShutdownSignal {
GracefulUpgrade,
GracefulTerminate,
FastShutdown,
}
Expand description
The type of shutdown process that has been requested.
Variants§
GracefulUpgrade
Send file descriptors to the new process before starting runtime shutdown with ServerConf::graceful_shutdown_timeout_seconds timeout.
GracefulTerminate
Wait for ServerConf::grace_period_seconds before starting runtime shutdown with ServerConf::graceful_shutdown_timeout_seconds timeout.
FastShutdown
Shutdown with no timeout for runtime shutdown.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ShutdownSignal
impl RefUnwindSafe for ShutdownSignal
impl Send for ShutdownSignal
impl Sync for ShutdownSignal
impl Unpin for ShutdownSignal
impl UnwindSafe for ShutdownSignal
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more