Struct spin::RwLockReadGuard
source · pub struct RwLockReadGuard<'a, T: 'a + ?Sized> { /* private fields */ }
Expand description
A guard from which the protected data can be read
When the guard falls out of scope it will decrement the read count, potentially releasing the lock.
Trait Implementations§
source§impl<'rwlock, T: ?Sized> Deref for RwLockReadGuard<'rwlock, T>
impl<'rwlock, T: ?Sized> Deref for RwLockReadGuard<'rwlock, T>
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