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