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.
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