Skip to main content

Handler

Trait Handler 

Source
pub trait Handler: 'static {
    // Required method
    fn event(&self);
}
Available on crate feature api-gpio only.
Expand description

Provides callback support for GPIO events.

Required Methods§

Source

fn event(&self)

Called when a GPIO event triggered.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl<F: Fn() + 'static> Handler for F