pub trait Handlers<R: Debug + Display> {
// Required methods
fn page_fault<C>(cx: C)
where C: Context<Registers = R> + PageFault;
fn code_fault<C>(cx: C)
where C: Context<Registers = R> + CodeFault;
fn double_fault<C>(cx: C)
where C: Context<Registers = R>;
fn timer_tick();
fn ps2_keyboard(scancode: u8);
// Provided method
fn test_interrupt<C>(_cx: C)
where C: Context<Registers = R> { ... }
}
Required Methods§
fn page_fault<C>(cx: C)
fn code_fault<C>(cx: C)
fn double_fault<C>(cx: C)where
C: Context<Registers = R>,
fn timer_tick()
Sourcefn ps2_keyboard(scancode: u8)
fn ps2_keyboard(scancode: u8)
Called when a PS/2 keyboard interrupt is fired. The handler is provided with the scancode read from the PS/2 keyboard controller.
Provided Methods§
fn test_interrupt<C>(_cx: C)where
C: Context<Registers = R>,
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.