pub trait AsyncPeripheral: Wakeable {
// Required method
fn on_interrupt();
}Expand description
Marks driver instances that can be bound to an interrupt to wake async tasks.
Required Methods§
Sourcefn on_interrupt()
fn on_interrupt()
Signals the driver of an interrupt.
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.