pub struct RwLockReadGuardArc<T> {
lock: NonNull<T>,
}
Expand description
An owned, reference-counting guard that releases the read lock when dropped.
Fields§
§lock: NonNull<T>
WARNING: This doesn’t actually point to a T
!
It points to a RwLock<T>
, via a pointer obtained with Arc::into_raw
.
We lie for covariance.
Implementations§
Source§impl<T> RwLockReadGuardArc<T>
impl<T> RwLockReadGuardArc<T>
Trait Implementations§
Source§impl<T: Debug> Debug for RwLockReadGuardArc<T>
impl<T: Debug> Debug for RwLockReadGuardArc<T>
Source§impl<T> Deref for RwLockReadGuardArc<T>
impl<T> Deref for RwLockReadGuardArc<T>
Source§impl<T: Display> Display for RwLockReadGuardArc<T>
impl<T: Display> Display for RwLockReadGuardArc<T>
Source§impl<T> Drop for RwLockReadGuardArc<T>
impl<T> Drop for RwLockReadGuardArc<T>
impl<T: Send + Sync> Send for RwLockReadGuardArc<T>
impl<T: Send + Sync> Sync for RwLockReadGuardArc<T>
Auto Trait Implementations§
impl<T> Freeze for RwLockReadGuardArc<T>
impl<T> RefUnwindSafe for RwLockReadGuardArc<T>where
T: RefUnwindSafe,
impl<T> Unpin for RwLockReadGuardArc<T>
impl<T> UnwindSafe for RwLockReadGuardArc<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