pub struct CriticalSectionRawMutex { /* private fields */ }
Expand description
A mutex that allows borrowing data across executors and interrupts.
§Safety
This mutex is safe to share between different executors and interrupts.
Implementations§
Trait Implementations§
Source§impl ConstInit for CriticalSectionRawMutex
impl ConstInit for CriticalSectionRawMutex
Source§impl ScopedRawMutex for CriticalSectionRawMutex
impl ScopedRawMutex for CriticalSectionRawMutex
Source§fn try_with_lock<R>(&self, f: impl FnOnce() -> R) -> Option<R>
fn try_with_lock<R>(&self, f: impl FnOnce() -> R) -> Option<R>
Lock this
ScopedRawMutex
, calling f()
after the lock has been acquired, and releasing
the lock after the completion of f()
. Read moreimpl Send for CriticalSectionRawMutex
impl Sync for CriticalSectionRawMutex
Auto Trait Implementations§
impl !Freeze for CriticalSectionRawMutex
impl RefUnwindSafe for CriticalSectionRawMutex
impl Unpin for CriticalSectionRawMutex
impl UnwindSafe for CriticalSectionRawMutex
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