pub struct Mutex<T> { /* private fields */ }Expand description
Mutex without synchronization (single-threaded only)
WARNING: This is only safe for single-threaded use cases without interrupts.
For RTIC or any multi-priority system, use sync-critical-section feature.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T> !Freeze for Mutex<T>
impl<T> !RefUnwindSafe for Mutex<T>
impl<T> Unpin for Mutex<T>where
T: Unpin,
impl<T> UnsafeUnpin for Mutex<T>where
T: UnsafeUnpin,
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