pub struct RawMutex { /* private fields */ }
Available on crate feature
multitask
only.Expand description
A [lock_api::RawMutex
] implementation.
When the mutex is locked, the current task will block and be put into the wait queue. When the mutex is unlocked, all tasks waiting on the queue will be woken up.
Implementations§
Trait Implementations§
Source§impl RawMutex for RawMutex
impl RawMutex for RawMutex
Source§type GuardMarker = GuardSend
type GuardMarker = GuardSend
Marker type which determines whether a lock guard should be
Send
. Use
one of the GuardSend
or GuardNoSend
helper types here.Auto Trait Implementations§
impl !Freeze for RawMutex
impl !RefUnwindSafe for RawMutex
impl Send for RawMutex
impl Sync for RawMutex
impl Unpin for RawMutex
impl !UnwindSafe for RawMutex
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