pub struct PreemptGuard { /* private fields */ }
Expand description
Preemption guard for disabling preemption without disabling interrupts.
This allows critical sections that need to prevent preemption but still allow interrupt handling (e.g., for device drivers).
Implementations§
Source§impl PreemptGuard
impl PreemptGuard
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PreemptGuard
impl RefUnwindSafe for PreemptGuard
impl Send for PreemptGuard
impl Sync for PreemptGuard
impl Unpin for PreemptGuard
impl UnwindSafe for PreemptGuard
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