pub struct RwLock<T>(RwLock<T>);
Expand description
A plain wrapper around parking_lot::RwLock
.
This is just like parking_lot::RwLock
, except that our new
method takes a rank, indicating where the new mutex should sit in
wgpu-core
’s lock ordering. The rank is ignored.
See the lock
module documentation for other wrappers.
Tuple Fields§
§0: RwLock<T>
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T> !Freeze for RwLock<T>
impl<T> !RefUnwindSafe for RwLock<T>
impl<T> Send for RwLock<T>where
T: Send,
impl<T> Sync for RwLock<T>
impl<T> Unpin for RwLock<T>where
T: Unpin,
impl<T> UnwindSafe for RwLock<T>where
T: UnwindSafe,
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