Struct irq_safety::HeldInterrupts
source · pub struct HeldInterrupts(/* private fields */);
Expand description
A guard type for withholding regular interrupts on the current CPU.
When dropped, interrupts are returned to their prior state rather than
just blindly re-enabled. For example, if interrupts were enabled
when hold_interrupts()
was invoked, interrupts will be re-enabled
when this type is dropped.
Trait Implementations§
source§impl Default for HeldInterrupts
impl Default for HeldInterrupts
source§fn default() -> HeldInterrupts
fn default() -> HeldInterrupts
Returns the “default value” for a type. Read more
source§impl Drop for HeldInterrupts
impl Drop for HeldInterrupts
impl !Send for HeldInterrupts
Auto Trait Implementations§
impl RefUnwindSafe for HeldInterrupts
impl Sync for HeldInterrupts
impl Unpin for HeldInterrupts
impl UnwindSafe for HeldInterrupts
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