pub struct NoCowGuard<'lock, ITEM: Send + Debug> { /* private fields */ }Expand description
Guards the exclusive lock. During this lock, any CoW operations are blocked.
-
The current thread must not borrow the locking instance.
-
No other thread (except calling) should already hold exclusive lock.
-
Must not be poisoned.
Trait Implementations§
Auto Trait Implementations§
impl<'lock, ITEM> Freeze for NoCowGuard<'lock, ITEM>
impl<'lock, ITEM> RefUnwindSafe for NoCowGuard<'lock, ITEM>where
ITEM: RefUnwindSafe,
impl<'lock, ITEM> !Send for NoCowGuard<'lock, ITEM>
impl<'lock, ITEM> !Sync for NoCowGuard<'lock, ITEM>
impl<'lock, ITEM> Unpin for NoCowGuard<'lock, ITEM>
impl<'lock, ITEM> UnwindSafe for NoCowGuard<'lock, ITEM>where
ITEM: RefUnwindSafe,
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