pub struct Guard<'k, K: Eq + Hash + Clone + Send> { /* private fields */ }Expand description
An RAII implementation of a scoped lock. When this structure is dropped (falls out of scope), the lock is released.
Trait Implementations§
Auto Trait Implementations§
impl<'k, K> Freeze for Guard<'k, K>where
K: Freeze,
impl<'k, K> !RefUnwindSafe for Guard<'k, K>
impl<'k, K> Send for Guard<'k, K>
impl<'k, K> Sync for Guard<'k, K>where
K: Sync,
impl<'k, K> Unpin for Guard<'k, K>where
K: Unpin,
impl<'k, K> !UnwindSafe for Guard<'k, 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