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: ?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§
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