pub struct Shutdown { /* private fields */ }Expand description
Resolves when the server begins shutting down
Implementations§
Source§impl Shutdown
impl Shutdown
Sourcepub fn is_draining(&self) -> bool
pub fn is_draining(&self) -> bool
True once the server was told to stop, which is up to
App::shutdown_delay before is_triggered.
Readiness checks report “not ready” from here on so load balancers stop
sending traffic while the server still answers.
Sourcepub fn is_triggered(&self) -> bool
pub fn is_triggered(&self) -> bool
True once shutdown has begun
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Shutdown
impl !UnwindSafe for Shutdown
impl Freeze for Shutdown
impl Send for Shutdown
impl Sync for Shutdown
impl Unpin for Shutdown
impl UnsafeUnpin for Shutdown
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