pub struct Mutex<T> {
    inner: Mutex<T>,
    rank: LockRank,
}Expand description
A Mutex instrumented for deadlock prevention.
This is just a wrapper around a parking_lot::Mutex, along with
its rank in the wgpu_core lock ordering.
For details, see the module documentation.
Fields§
§inner: Mutex<T>§rank: LockRankImplementations§
Trait Implementations§
Auto Trait Implementations§
impl<T> !Freeze for Mutex<T>
impl<T> !RefUnwindSafe for Mutex<T>
impl<T> Send for Mutex<T>where
    T: Send,
impl<T> Sync for Mutex<T>where
    T: Send,
impl<T> Unpin for Mutex<T>where
    T: Unpin,
impl<T> UnwindSafe for Mutex<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