pub struct RawInterruptMutex<I> { /* private fields */ }
Expand description
A mutex for sharing data with interrupt handlers or signal handlers.
This mutex wraps another RawMutex
and disables interrupts while locked.
Trait Implementations§
Source§impl<I> RawMutex for RawInterruptMutex<I>where
I: RawMutex,
impl<I> RawMutex for RawInterruptMutex<I>where
I: RawMutex,
Source§const INIT: RawInterruptMutex<I>
const INIT: RawInterruptMutex<I>
Initial value for an unlocked mutex.
Source§type GuardMarker = GuardNoSend
type GuardMarker = GuardNoSend
Marker type which determines whether a lock guard should be
Send
. Use
one of the GuardSend
or GuardNoSend
helper types here.impl<I> Send for RawInterruptMutex<I>where
I: Send,
impl<I> Sync for RawInterruptMutex<I>where
I: Sync,
Auto Trait Implementations§
impl<I> !Freeze for RawInterruptMutex<I>
impl<I> !RefUnwindSafe for RawInterruptMutex<I>
impl<I> Unpin for RawInterruptMutex<I>where
I: Unpin,
impl<I> UnwindSafe for RawInterruptMutex<I>where
I: 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