pub struct StoreClosingGuard(/* private fields */);Expand description
Marks an owning scope as closing on drop, without retaining its lock.
Share an Arc of this guard across clones of that owner. A distinct owner
scope can use closing_guard; ending either scope marks the instance.
Implementations§
Source§impl StoreClosingGuard
impl StoreClosingGuard
Sourcepub fn closing_guard(&self) -> Self
pub fn closing_guard(&self) -> Self
A separate owning scope for the same lock instance.
Sourcepub fn begin_close(&self)
pub fn begin_close(&self)
Begin closing before awaiting shutdown of workers and connections. A guard from a released instance never changes a replacement instance.
Trait Implementations§
Source§impl Debug for StoreClosingGuard
impl Debug for StoreClosingGuard
Auto Trait Implementations§
impl Freeze for StoreClosingGuard
impl RefUnwindSafe for StoreClosingGuard
impl Send for StoreClosingGuard
impl Sync for StoreClosingGuard
impl Unpin for StoreClosingGuard
impl UnsafeUnpin for StoreClosingGuard
impl UnwindSafe for StoreClosingGuard
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