pub struct Guard(/* private fields */);Expand description
The presence of a Guard delays shutdown.
Dropping all Guards in a Swansong’s subset allows the
ShutdownCompletion future returned by awaiting the
Swansong to complete.
Each clone is treated distinctly in the guard count.
A Guard keeps its originating node’s coordination state alive for the Guard’s lifetime, so that its drop can correctly update ancestor subtree accounting even if every Swansong handle to that node has been dropped.
Trait Implementations§
impl Eq for Guard
Auto Trait Implementations§
impl Freeze for Guard
impl RefUnwindSafe for Guard
impl Send for Guard
impl Sync for Guard
impl Unpin for Guard
impl UnsafeUnpin for Guard
impl UnwindSafe for Guard
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