pub struct PreemptIrqSaveGuard { /* private fields */ }Expand description
An RAII guard which disables preemption and local interrupts.
Entry disables preemption before interrupts. Drop restores interrupts before re-enabling preemption, matching Linux spin-lock IRQ-save ordering.
Implementations§
Source§impl PreemptIrqSaveGuard
impl PreemptIrqSaveGuard
pub fn new() -> PreemptIrqSaveGuard
Trait Implementations§
Source§impl Default for PreemptIrqSaveGuard
impl Default for PreemptIrqSaveGuard
Source§fn default() -> PreemptIrqSaveGuard
fn default() -> PreemptIrqSaveGuard
Returns the “default value” for a type. Read more
Source§impl Drop for PreemptIrqSaveGuard
impl Drop for PreemptIrqSaveGuard
Auto Trait Implementations§
impl !Send for PreemptIrqSaveGuard
impl !Sync for PreemptIrqSaveGuard
impl Freeze for PreemptIrqSaveGuard
impl RefUnwindSafe for PreemptIrqSaveGuard
impl Unpin for PreemptIrqSaveGuard
impl UnsafeUnpin for PreemptIrqSaveGuard
impl UnwindSafe for PreemptIrqSaveGuard
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