pub struct LockGuard<'a, 'b, K: Eq + Hash + Clone> { /* private fields */ }
Expand description
RAII guard for a single locked key.
When this guard is dropped, the lock will be automatically released.
Trait Implementations§
Auto Trait Implementations§
impl<'a, 'b, K> Freeze for LockGuard<'a, 'b, K>
impl<'a, 'b, K> !RefUnwindSafe for LockGuard<'a, 'b, K>
impl<'a, 'b, K> Send for LockGuard<'a, 'b, K>
impl<'a, 'b, K> Sync for LockGuard<'a, 'b, K>
impl<'a, 'b, K> Unpin for LockGuard<'a, 'b, K>
impl<'a, 'b, K> !UnwindSafe for LockGuard<'a, 'b, K>
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