pub struct GuardImpl<M, H, P> where
M: ArcMutexMapLike,
H: Hooks<M::V>,
P: Borrow<LockableMapImpl<M, H>>, { /* private fields */ }Expand description
A RAII implementation of a scoped lock for locks from a LockableHashMap or LockableLruCache. When this instance is dropped (falls out of scope), the lock will be unlocked.
Implementations
Trait Implementations
Auto Trait Implementations
impl<M, H, P> !RefUnwindSafe for GuardImpl<M, H, P>
impl<M, H, P> Send for GuardImpl<M, H, P> where
H: Send,
P: Send,
<M as ArcMutexMapLike>::K: Send,
<M as ArcMutexMapLike>::V: Send,
impl<M, H, P> Sync for GuardImpl<M, H, P> where
H: Sync,
P: Sync,
<M as ArcMutexMapLike>::K: Sync,
<M as ArcMutexMapLike>::V: Send + Sync,
impl<M, H, P> Unpin for GuardImpl<M, H, P> where
H: Unpin,
P: Unpin,
<M as ArcMutexMapLike>::K: Unpin,
impl<M, H, P> !UnwindSafe for GuardImpl<M, H, P>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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