pub struct StoreReadLock { /* private fields */ }Expand description
A shared lock that prevents deletion while a reader holds store files open.
Implementations§
Source§impl StoreReadLock
impl StoreReadLock
Sourcepub fn closing_guard(&self) -> StoreClosingGuard
pub fn closing_guard(&self) -> StoreClosingGuard
Mark this reader as closing when its owner begins to close, so a deletion in this process waits for its release instead of refusing. This guard does not retain the OS lock.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StoreReadLock
impl RefUnwindSafe for StoreReadLock
impl Send for StoreReadLock
impl Sync for StoreReadLock
impl Unpin for StoreReadLock
impl UnsafeUnpin for StoreReadLock
impl UnwindSafe for StoreReadLock
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