pub struct Mutex<T: ?Sized> { /* private fields */ }Implementations§
Source§impl<T: ?Sized> Mutex<T>
impl<T: ?Sized> Mutex<T>
Sourcepub fn lock_from_isr_explicit(&self) -> Result<MutexGuardFromIsr<'_, T>>
pub fn lock_from_isr_explicit(&self) -> Result<MutexGuardFromIsr<'_, T>>
Acquires the mutex from ISR context, returning a specific ISR guard
Trait Implementations§
Source§impl<T: ?Sized> Mutex<T> for Mutex<T>
impl<T: ?Sized> Mutex<T> for Mutex<T>
type Guard<'a> = MutexGuard<'a, T> where Self: 'a, T: 'a
type GuardFromIsr<'a> = MutexGuardFromIsr<'a, T> where Self: 'a, T: 'a
Source§fn lock(&self) -> Result<Self::Guard<'_>>
fn lock(&self) -> Result<Self::Guard<'_>>
Acquires the mutex, blocking the current thread until it is able to do so
Source§fn lock_from_isr(&self) -> Result<Self::GuardFromIsr<'_>>
fn lock_from_isr(&self) -> Result<Self::GuardFromIsr<'_>>
Acquires the mutex from ISR context
Source§fn into_inner(self) -> Result<T>
fn into_inner(self) -> Result<T>
Attempts to consume this mutex, returning the underlying data
impl<T: ?Sized + Send> Send for Mutex<T>
impl<T: ?Sized + Send> Sync for Mutex<T>
Auto Trait Implementations§
impl<T> !Freeze for Mutex<T>
impl<T> !RefUnwindSafe for Mutex<T>
impl<T> Unpin for Mutex<T>
impl<T> UnwindSafe for Mutex<T>where
T: UnwindSafe + ?Sized,
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