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
sourceimpl<'a, T: Debug + 'a + ?Sized> Debug for RwLockReadGuard<'a, T>
impl<'a, T: Debug + 'a + ?Sized> Debug for RwLockReadGuard<'a, T>
sourceimpl<'rwlock, T: ?Sized> Deref for RwLockReadGuard<'rwlock, T>
impl<'rwlock, T: ?Sized> Deref for RwLockReadGuard<'rwlock, T>
sourceimpl<'rwlock, T: ?Sized> Drop for RwLockReadGuard<'rwlock, T>
impl<'rwlock, T: ?Sized> Drop for RwLockReadGuard<'rwlock, T>
Auto Trait Implementations
impl<'a, T: ?Sized> RefUnwindSafe for RwLockReadGuard<'a, T>where
T: RefUnwindSafe,
impl<'a, T> !Send for RwLockReadGuard<'a, T>
impl<'a, T> !Sync for RwLockReadGuard<'a, T>
impl<'a, T: ?Sized> Unpin for RwLockReadGuard<'a, T>
impl<'a, T: ?Sized> UnwindSafe for RwLockReadGuard<'a, T>where
T: RefUnwindSafe,
Blanket Implementations
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstablefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more