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>,
Object Safety§
This trait is not object safe.