pub struct SpinlockRawMutex<const N: usize> { /* private fields */ }Expand description
A mutex that allows borrowing data across executors and interrupts by utilizing an hardware spinlock
§Safety
This mutex is safe to share between different executors and interrupts.
Implementations§
Trait Implementations§
Source§impl<const N: usize> Default for SpinlockRawMutex<N>
impl<const N: usize> Default for SpinlockRawMutex<N>
Source§impl<const N: usize> RawMutex for SpinlockRawMutex<N>where
Spinlock<N>: SpinlockValid,
impl<const N: usize> RawMutex for SpinlockRawMutex<N>where
Spinlock<N>: SpinlockValid,
impl<const N: usize> Send for SpinlockRawMutex<N>
impl<const N: usize> Sync for SpinlockRawMutex<N>
Auto Trait Implementations§
impl<const N: usize> Freeze for SpinlockRawMutex<N>
impl<const N: usize> RefUnwindSafe for SpinlockRawMutex<N>
impl<const N: usize> Unpin for SpinlockRawMutex<N>
impl<const N: usize> UnsafeUnpin for SpinlockRawMutex<N>
impl<const N: usize> UnwindSafe for SpinlockRawMutex<N>
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