pub struct Isr { /* private fields */ }Expand description
Proof that the caller runs in interrupt context.
A port’s interrupt entry constructs it (once per interrupt) and passes it
down; task code never holds one. It is deliberately not Copy-free —
an ISR may call several kernel APIs — but it is !Send so it cannot be
stashed for a task to misuse.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !Send for Isr
impl !Sync for Isr
impl Freeze for Isr
impl RefUnwindSafe for Isr
impl Unpin for Isr
impl UnsafeUnpin for Isr
impl UnwindSafe for Isr
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