pub struct Mutex { /* private fields */ }Expand description
Process-local mutex. Zero initialize for a plain mutex, or use mutex_init. Keep its address fixed from first use through destruction. The fields are private to the host; copying a used mutex or sharing it across processes is invalid.
Auto Trait Implementations§
impl Freeze for Mutex
impl RefUnwindSafe for Mutex
impl !Send for Mutex
impl !Sync 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