Struct std::sync::RwLockReadGuard
1.0.0 · source · pub struct RwLockReadGuard<'a, T: ?Sized + 'a> {
data: NonNull<T>,
inner_lock: &'a RwLock,
}
Expand description
Fields§
§data: NonNull<T>
§inner_lock: &'a RwLock
Implementations§
source§impl<'rwlock, T: ?Sized> RwLockReadGuard<'rwlock, T>
impl<'rwlock, T: ?Sized> RwLockReadGuard<'rwlock, T>
sourceunsafe fn new(
lock: &'rwlock RwLock<T>
) -> LockResult<RwLockReadGuard<'rwlock, T>>
unsafe fn new( lock: &'rwlock RwLock<T> ) -> LockResult<RwLockReadGuard<'rwlock, T>>
Create a new instance of RwLockReadGuard<T>
from a RwLock<T>
.
Trait Implementations§
1.16.0 · source§impl<T: Debug> Debug for RwLockReadGuard<'_, T>
impl<T: Debug> Debug for RwLockReadGuard<'_, T>
source§impl<T: ?Sized> Deref for RwLockReadGuard<'_, T>
impl<T: ?Sized> Deref for RwLockReadGuard<'_, T>
source§impl<T: ?Sized> Drop for RwLockReadGuard<'_, T>
impl<T: ?Sized> Drop for RwLockReadGuard<'_, T>
impl<T: ?Sized> !Send for RwLockReadGuard<'_, T>
impl<T: ?Sized + Sync> Sync for RwLockReadGuard<'_, T>
Auto Trait Implementations§
impl<'a, T: ?Sized> RefUnwindSafe for RwLockReadGuard<'a, T>where T: RefUnwindSafe,
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