Struct ordered_locks::RwLockReadGuard
source · [−]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
sourceimpl<'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> RefUnwindSafe for RwLockReadGuard<'a, L, T>where
L: RefUnwindSafe,
T: RefUnwindSafe,
impl<'a, L, T> !Send for RwLockReadGuard<'a, L, T>
impl<'a, L, T> Sync for RwLockReadGuard<'a, L, T>where
L: Sync,
T: Sync,
impl<'a, L, T> Unpin for RwLockReadGuard<'a, L, T>
impl<'a, L, T> !UnwindSafe for RwLockReadGuard<'a, L, T>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more