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§

source

fn page_fault<C>(cx: C)
where C: Context<Registers = R> + PageFault,

source

fn code_fault<C>(cx: C)
where C: Context<Registers = R> + CodeFault,

source

fn double_fault<C>(cx: C)
where C: Context<Registers = R>,

source

fn timer_tick()

source

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§

source

fn test_interrupt<C>(_cx: C)
where C: Context<Registers = R>,

Object Safety§

This trait is not object safe.

Implementors§