Trait axhal::trap::TrapHandler

source ·
pub trait TrapHandler {
    // Required method
    fn handle_irq(irq_num: usize);
}
Expand description

Trap handler interface.

This trait is defined with the #[def_interface] attribute. Users should implement it with #[impl_interface] in any other crate.

Required Methods§

source

fn handle_irq(irq_num: usize)

Handles interrupt requests for the given IRQ number.

Object Safety§

This trait is not object safe.

Implementors§