Struct hermit_sync::RawInterruptMutex
source · pub struct RawInterruptMutex<I> { /* private fields */ }Expand description
An interrupt-safe mutex.
This mutex wraps another RawMutex and disables interrupts while locked.
Only has an effect if target_os = "none".
Trait Implementations§
source§impl<I: RawMutex> RawMutex for RawInterruptMutex<I>
impl<I: RawMutex> RawMutex for RawInterruptMutex<I>
§type GuardMarker = <I as RawMutex>::GuardMarker
type GuardMarker = <I as RawMutex>::GuardMarker
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<I> RefUnwindSafe for RawInterruptMutex<I>where I: RefUnwindSafe,
impl<I> Send for RawInterruptMutex<I>where I: Send,
impl<I> Sync for RawInterruptMutex<I>where I: Sync,
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