pub struct LockGuard { /* private fields */ }Expand description
RAII guard returned by Lock::lock and Lock::try_lock.
Releases the lock — both the OS primitive and the thread gate — when
dropped. The guard keeps the Lock’s backing state alive, so it is
safe to drop the originating Lock while the guard is still live.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LockGuard
impl RefUnwindSafe for LockGuard
impl Send for LockGuard
impl Sync for LockGuard
impl Unpin for LockGuard
impl UnsafeUnpin for LockGuard
impl UnwindSafe for LockGuard
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