pub struct ReentrantMutexGuard<'a, T: ?Sized> { /* private fields */ }Expand description
Shared access to a ReentrantMutex’s value; drops one level of the
hold. The drop of the last level releases the lock, which is lock-free,
not wait-free: with waiters it returns after one pass over the queue,
plus at most one for each operation of another thread that lands on the
queue meanwhile (see Progress).
Trait Implementations§
Source§impl<T: ?Sized> Deref for ReentrantMutexGuard<'_, T>
impl<T: ?Sized> Deref for ReentrantMutexGuard<'_, T>
Source§impl<T: ?Sized> Drop for ReentrantMutexGuard<'_, T>
impl<T: ?Sized> Drop for ReentrantMutexGuard<'_, T>
Auto Trait Implementations§
impl<'a, T> !RefUnwindSafe for ReentrantMutexGuard<'a, T>
impl<'a, T> !Send for ReentrantMutexGuard<'a, T>
impl<'a, T> !Sync for ReentrantMutexGuard<'a, T>
impl<'a, T> !UnwindSafe for ReentrantMutexGuard<'a, T>
impl<'a, T> Freeze for ReentrantMutexGuard<'a, T>where
T: ?Sized,
impl<'a, T> Unpin for ReentrantMutexGuard<'a, T>where
T: ?Sized,
impl<'a, T> UnsafeUnpin for ReentrantMutexGuard<'a, T>where
T: ?Sized,
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