pub struct IrqSaveGuard { /* private fields */ }Expand description
An RAII guard which saves and disables local interrupts while it is alive.
Implementations§
Source§impl IrqSaveGuard
impl IrqSaveGuard
pub fn new() -> Self
Sourcepub fn disable_preempt_for_irq_return(&mut self) -> IrqReturnPreemptGuard<'_>
pub fn disable_preempt_for_irq_return(&mut self) -> IrqReturnPreemptGuard<'_>
Disables preemption for work completed by a hard-IRQ return epilogue.
The mutable borrow prevents raw local-IRQ restoration before the dedicated preemption exit has completed.
Trait Implementations§
Source§impl Default for IrqSaveGuard
impl Default for IrqSaveGuard
Source§impl Drop for IrqSaveGuard
impl Drop for IrqSaveGuard
Auto Trait Implementations§
impl !Send for IrqSaveGuard
impl !Sync for IrqSaveGuard
impl Freeze for IrqSaveGuard
impl RefUnwindSafe for IrqSaveGuard
impl Unpin for IrqSaveGuard
impl UnsafeUnpin for IrqSaveGuard
impl UnwindSafe for IrqSaveGuard
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