Struct graceful_shutdown::Draining
source · pub struct Draining(_);
Expand description
A drop guard to prevent final shutdown.
This can be used to track a task that should be completed before shutdown is completed. As long as it is alive, shutdown will be prevented, and dropping it reduces the count of pending tasks before final shutdown.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Draining
impl Send for Draining
impl Sync for Draining
impl Unpin for Draining
impl UnwindSafe for Draining
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more