pub struct RwLockReadGuard<'a, R, T>where
R: RawMutex,
T: ?Sized,{ /* private fields */ }Expand description
Async read lock guard.
Owning an instance of this type indicates having successfully locked the read-write lock for reading, and grants access to the contents.
Dropping it unlocks the read-write lock.
Trait Implementations§
Source§impl<'a, M, T> Debug for RwLockReadGuard<'a, M, T>where
M: RawMutex,
T: ?Sized + Debug,
impl<'a, M, T> Debug for RwLockReadGuard<'a, M, T>where
M: RawMutex,
T: ?Sized + Debug,
Source§impl<'a, M, T> Deref for RwLockReadGuard<'a, M, T>where
M: RawMutex,
T: ?Sized,
impl<'a, M, T> Deref for RwLockReadGuard<'a, M, T>where
M: RawMutex,
T: ?Sized,
Source§impl<'a, M, T> Display for RwLockReadGuard<'a, M, T>where
M: RawMutex,
T: ?Sized + Display,
impl<'a, M, T> Display for RwLockReadGuard<'a, M, T>where
M: RawMutex,
T: ?Sized + Display,
Auto Trait Implementations§
impl<'a, R, T> Freeze for RwLockReadGuard<'a, R, T>where
T: ?Sized,
impl<'a, R, T> !RefUnwindSafe for RwLockReadGuard<'a, R, T>
impl<'a, R, T> Send for RwLockReadGuard<'a, R, T>where
R: Sync,
T: Send + ?Sized,
impl<'a, R, T> Sync for RwLockReadGuard<'a, R, T>where
R: Sync,
T: Send + ?Sized,
impl<'a, R, T> Unpin for RwLockReadGuard<'a, R, T>where
T: ?Sized,
impl<'a, R, T> UnsafeUnpin for RwLockReadGuard<'a, R, T>where
T: ?Sized,
impl<'a, R, T> !UnwindSafe for RwLockReadGuard<'a, R, T>
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more