Skip to main content

CallBackFunc

Trait CallBackFunc 

Source
pub trait CallBackFunc: Send + Sync {
    // Required method
    fn call(&self, trap_frame: &mut PtRegs);
}
Expand description

The callback function type for events.

Required Methods§

Source

fn call(&self, trap_frame: &mut PtRegs)

Call the callback function.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§