pub trait IRQHandler {
// Required method
unsafe fn do_prologue();
// Provided method
fn get_gate() -> IRQGate { ... }
}
Expand description
device driver trait that has only prologue
Required Methods§
Sourceunsafe fn do_prologue()
unsafe fn do_prologue()
the “hardirq” part of the irq handler, it must not be interrupted. unsafe: must guarantee the prologue is called with irq disabled the prologue should be short and bounded. It must not block.
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.