pub struct Mutex {
futex: AtomicU32,
}
Fields§
§futex: AtomicU32
0: unlocked 1: locked, no other threads waiting 2: locked, and other threads waiting (contended)
Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Mutex
impl Send for Mutex
impl Sync for Mutex
impl Unpin for Mutex
impl UnwindSafe for Mutex
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