pub struct RwLockReadGuard<'a, T: ?Sized + 'a>(/* private fields */);Expand description
RAII structure used to release the shared read access of a lock when dropped.
This structure is created by the super::RwLock::read and super::RwLock::try_read methods on super::RwLock.
Trait Implementations§
Source§impl<'a, T> Deref for RwLockReadGuard<'a, T>where
T: ?Sized,
impl<'a, T> Deref for RwLockReadGuard<'a, T>where
T: ?Sized,
Source§impl Display for RwLockReadGuard<'_, str>
impl Display for RwLockReadGuard<'_, str>
Source§impl<'a, T> From<RwLockReadGuard<'a, T>> for RwLockReadGuard<'a, T>
impl<'a, T> From<RwLockReadGuard<'a, T>> for RwLockReadGuard<'a, T>
Source§fn from(guard: RwLockReadGuard<'a, T>) -> Self
fn from(guard: RwLockReadGuard<'a, T>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a, T> Freeze for RwLockReadGuard<'a, T>where
T: ?Sized,
impl<'a, T> RefUnwindSafe for RwLockReadGuard<'a, T>where
T: RefUnwindSafe + ?Sized,
impl<'a, T> !Send for RwLockReadGuard<'a, T>
impl<'a, T> Sync for RwLockReadGuard<'a, T>
impl<'a, T> Unpin for RwLockReadGuard<'a, T>where
T: ?Sized,
impl<'a, T> UnwindSafe for RwLockReadGuard<'a, T>where
T: RefUnwindSafe + ?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