pub struct ReentrantReadGuard<'a, T: ?Sized> { /* private fields */ }Expand description
One read of a ReentrantRwLock; drops one level of the owner’s
reads. The drop of the last level releases the read, 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 ReentrantReadGuard<'_, T>
impl<T: ?Sized> Deref for ReentrantReadGuard<'_, T>
Source§impl<T: ?Sized> Drop for ReentrantReadGuard<'_, T>
impl<T: ?Sized> Drop for ReentrantReadGuard<'_, T>
Auto Trait Implementations§
impl<'a, T> !RefUnwindSafe for ReentrantReadGuard<'a, T>
impl<'a, T> !Send for ReentrantReadGuard<'a, T>
impl<'a, T> !Sync for ReentrantReadGuard<'a, T>
impl<'a, T> !UnwindSafe for ReentrantReadGuard<'a, T>
impl<'a, T> Freeze for ReentrantReadGuard<'a, T>where
T: ?Sized,
impl<'a, T> Unpin for ReentrantReadGuard<'a, T>where
T: ?Sized,
impl<'a, T> UnsafeUnpin for ReentrantReadGuard<'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