Trait Handler

Source
pub trait Handler: Sync {
    // Required method
    fn handle(&self, device: &Device<Bound>) -> IrqReturn;
}
Expand description

Callbacks for an IRQ handler.

Required Methods§

Source

fn handle(&self, device: &Device<Bound>) -> IrqReturn

The hard IRQ handler.

This is executed in interrupt context, hence all corresponding limitations do apply.

All work that does not necessarily need to be executed from interrupt context, should be deferred to a threaded handler. See also ThreadedRegistration.

Implementors§

Source§

impl<T: ?Sized + Handler + Send> Handler for Arc<T>

Source§

impl<T: ?Sized + Handler, A: Allocator> Handler for Box<T, A>