Struct maitake::sync::RwLockReadGuard
pub struct RwLockReadGuard<'lock, T, Lock = Spinlock>{ /* private fields */ }
Expand description
RAII structure used to release the shared read access of a RwLock
when
dropped.
The data protected by the RwLock
can be accessed through this guard via
its Deref
implementation.
This guard can be held across any .await
point, as it implements
Send
.
This structure is created by the read
and try_read
methods on
RwLock
.
Trait Implementations§
§impl<T, Lock> Debug for RwLockReadGuard<'_, T, Lock>
impl<T, Lock> Debug for RwLockReadGuard<'_, T, Lock>
§impl<T, Lock> Deref for RwLockReadGuard<'_, T, Lock>
impl<T, Lock> Deref for RwLockReadGuard<'_, T, Lock>
impl<T, Lock> Send for RwLockReadGuard<'_, T, Lock>
impl<T, Lock> Sync for RwLockReadGuard<'_, T, Lock>
Auto Trait Implementations§
impl<'lock, T, Lock = Spinlock> !RefUnwindSafe for RwLockReadGuard<'lock, T, Lock>
impl<'lock, T: ?Sized, Lock> Unpin for RwLockReadGuard<'lock, T, Lock>
impl<'lock, T, Lock = Spinlock> !UnwindSafe for RwLockReadGuard<'lock, T, Lock>
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