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