Struct esp32_hal::xtensa_lx::mutex::SpinLockMutex
source · pub struct SpinLockMutex<T> { /* private fields */ }
Expand description
A spinlock based mutex.
Implementations§
source§impl<T> SpinLockMutex<T>
impl<T> SpinLockMutex<T>
sourcepub const fn new(data: T) -> SpinLockMutex<T>
pub const fn new(data: T) -> SpinLockMutex<T>
Create a new mutex
Trait Implementations§
source§impl<T> Default for SpinLockMutex<T>where
T: Default,
impl<T> Default for SpinLockMutex<T>where
T: Default,
source§fn default() -> SpinLockMutex<T>
fn default() -> SpinLockMutex<T>
Returns the “default value” for a type. Read more
source§impl<T> Mutex for &SpinLockMutex<T>
impl<T> Mutex for &SpinLockMutex<T>
impl<T> Sync for SpinLockMutex<T>where
T: Send,
Auto Trait Implementations§
impl<T> !RefUnwindSafe for SpinLockMutex<T>
impl<T> Send for SpinLockMutex<T>where
T: Send,
impl<T> Unpin for SpinLockMutex<T>where
T: Unpin,
impl<T> UnwindSafe for SpinLockMutex<T>where
T: 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