pub enum LocalIrqDisabled {}Expand description
A guardian that disables IRQs while holding a lock.
This guardian would incur a certain time overhead over
PreemptDisabled. So prefer avoiding using this guardian when
IRQ handlers are allowed to get executed while holding the
lock. For example, if a lock is never used in the interrupt
context, then it is ok not to use this guardian in the process context.
Trait Implementations§
Source§impl SpinGuardian for LocalIrqDisabled
impl SpinGuardian for LocalIrqDisabled
Source§type Guard = DisabledLocalIrqGuard
type Guard = DisabledLocalIrqGuard
The guard type for holding a spin lock or a spin-based write lock.
Source§type ReadGuard = DisabledLocalIrqGuard
type ReadGuard = DisabledLocalIrqGuard
The guard type for holding a spin-based read lock.
Source§fn read_guard() -> Self::Guard
fn read_guard() -> Self::Guard
Creates a new read guard.
Auto Trait Implementations§
impl Freeze for LocalIrqDisabled
impl RefUnwindSafe for LocalIrqDisabled
impl Send for LocalIrqDisabled
impl Sync for LocalIrqDisabled
impl Unpin for LocalIrqDisabled
impl UnwindSafe for LocalIrqDisabled
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