pub struct RwLockReadGuard<'a, L: Level, T> { /* private fields */ }
Expand description
RAII structure used to release the shared read access of a lock when dropped.
Implementations§
Source§impl<'a, L: Level, T> RwLockReadGuard<'a, L, T>
impl<'a, L: Level, T> RwLockReadGuard<'a, L, T>
Sourcepub fn token_split(&mut self) -> (&T, LockToken<'_, L>)
pub fn token_split(&mut self) -> (&T, LockToken<'_, L>)
Split the guard into two parts, the first a reference to the held content
the second a LockToken
that can be used for further locking
Trait Implementations§
Auto Trait Implementations§
impl<'a, L, T> Freeze for RwLockReadGuard<'a, L, T>
impl<'a, L, T> RefUnwindSafe for RwLockReadGuard<'a, L, T>where
T: RefUnwindSafe,
L: RefUnwindSafe,
impl<'a, L, T> !Send for RwLockReadGuard<'a, L, T>
impl<'a, L, T> Sync for RwLockReadGuard<'a, L, T>
impl<'a, L, T> Unpin for RwLockReadGuard<'a, L, T>
impl<'a, L, T> !UnwindSafe for RwLockReadGuard<'a, L, T>
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