hal_core::interrupt

Trait Handlers

Source
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>,

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.

Implementors§