pub struct Mutex { /* private fields */ }Expand description
A mutual exclusion primitive for protecting shared data.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Mutex
impl !RefUnwindSafe for Mutex
impl !Sync for Mutex
impl Send for Mutex
impl Unpin for Mutex
impl UnsafeUnpin 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