pub struct MutexGuardFromIsr<'a, T: ?Sized + 'a> { /* private fields */ }Expand description
RAII guard returned by Mutex::lock_from_isr().
Similar to MutexGuard but specifically for ISR context.
Automatically unlocks the mutex when dropped using ISR-safe unlock.
§Examples
ⓘ
// In ISR context:
if let Ok(mut guard) = mutex.lock_from_isr() {
*guard = new_value;
} // Automatically unlocked with ISR-safe methodTrait Implementations§
Source§impl<'a, T: ?Sized> Deref for MutexGuardFromIsr<'a, T>
impl<'a, T: ?Sized> Deref for MutexGuardFromIsr<'a, T>
Source§impl<'a, T: ?Sized> DerefMut for MutexGuardFromIsr<'a, T>
impl<'a, T: ?Sized> DerefMut for MutexGuardFromIsr<'a, T>
Source§impl<'a, T: ?Sized> Drop for MutexGuardFromIsr<'a, T>
impl<'a, T: ?Sized> Drop for MutexGuardFromIsr<'a, T>
Source§impl<'a, T: ?Sized> MutexGuard<'a, T> for MutexGuardFromIsr<'a, T>
impl<'a, T: ?Sized> MutexGuard<'a, T> for MutexGuardFromIsr<'a, T>
Auto Trait Implementations§
impl<'a, T> Freeze for MutexGuardFromIsr<'a, T>where
T: ?Sized,
impl<'a, T> !RefUnwindSafe for MutexGuardFromIsr<'a, T>
impl<'a, T> Send for MutexGuardFromIsr<'a, T>
impl<'a, T> Sync for MutexGuardFromIsr<'a, T>
impl<'a, T> Unpin for MutexGuardFromIsr<'a, T>where
T: ?Sized,
impl<'a, T> !UnwindSafe for MutexGuardFromIsr<'a, T>
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