Struct wgpu_core::lock::ranked::RwLockReadGuard
source · pub struct RwLockReadGuard<'a, T> {
inner: RwLockReadGuard<'a, T>,
saved: LockStateGuard,
}
Expand description
A read guard produced by locking RwLock
for reading.
This is just a wrapper around a parking_lot::RwLockReadGuard
, along with
the state needed to track lock acquisition.
For details, see the module documentation.
Fields§
§inner: RwLockReadGuard<'a, T>
§saved: LockStateGuard
Trait Implementations§
Auto Trait Implementations§
impl<'a, T> Freeze for RwLockReadGuard<'a, T>
impl<'a, T> !RefUnwindSafe for RwLockReadGuard<'a, T>
impl<'a, T> !Send for RwLockReadGuard<'a, T>
impl<'a, T> Sync for RwLockReadGuard<'a, T>where
T: Sync,
impl<'a, T> Unpin for RwLockReadGuard<'a, T>
impl<'a, T> !UnwindSafe for RwLockReadGuard<'a, 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