Struct namedlock::LockSpaceGuard
source · Expand description
An RAII implementation of a “scoped lock” of a a LockSpace value. When this structure is dropped (falls out of scope), the lock will be unlocked, and the reference count to the key will be decreased by 1.
The actual value can be accessed through this guard via its Deref and DerefMut implementations.
Trait Implementations
Auto Trait Implementations
impl<'a, K, V> RefUnwindSafe for LockSpaceGuard<'a, K, V>where
K: RefUnwindSafe,
impl<'a, K, V> !Send for LockSpaceGuard<'a, K, V>
impl<'a, K, V> Sync for LockSpaceGuard<'a, K, V>where
K: Send + Sync,
V: Send + Sync,
impl<'a, K, V> Unpin for LockSpaceGuard<'a, K, V>where
K: Unpin,
impl<'a, K, V> UnwindSafe for LockSpaceGuard<'a, K, V>where
K: UnwindSafe,
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