pub struct RwLockReadGuard<'a, R, T>{ /* 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>
impl<'a, M, T> Debug for RwLockReadGuard<'a, M, T>
Source§impl<'a, M, T> Deref for RwLockReadGuard<'a, M, T>
impl<'a, M, T> Deref for RwLockReadGuard<'a, M, T>
Source§impl<'a, M, T> Display for RwLockReadGuard<'a, M, T>
impl<'a, M, T> Display for RwLockReadGuard<'a, M, T>
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>
impl<'a, R, T> Sync for RwLockReadGuard<'a, R, T>
impl<'a, R, T> Unpin for RwLockReadGuard<'a, R, T>where
T: ?Sized,
impl<'a, R, T> !UnwindSafe for RwLockReadGuard<'a, R, T>
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