pub struct IrqMutexGuard<'a, T> { /* private fields */ }Expand description
IrqSpinlock的锁守卫
当这个守卫被drop时,锁会自动释放,中断状态也会恢复。
Trait Implementations§
Source§impl<T> Deref for IrqMutexGuard<'_, T>
impl<T> Deref for IrqMutexGuard<'_, T>
Source§impl<T> DerefMut for IrqMutexGuard<'_, T>
impl<T> DerefMut for IrqMutexGuard<'_, T>
Auto Trait Implementations§
impl<'a, T> Freeze for IrqMutexGuard<'a, T>
impl<'a, T> !RefUnwindSafe for IrqMutexGuard<'a, T>
impl<'a, T> Send for IrqMutexGuard<'a, T>where
T: Send,
impl<'a, T> Sync for IrqMutexGuard<'a, T>where
T: Send,
impl<'a, T> Unpin for IrqMutexGuard<'a, T>
impl<'a, T> !UnwindSafe for IrqMutexGuard<'a, T>
Blanket Implementations§
Source§impl<T> Background for T
impl<T> Background for T
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