Skip to main content

HandleEvent

Trait HandleEvent 

Source
pub trait HandleEvent {
    // Required methods
    fn rising_edge(&self) -> Edge ⓘ;
    fn falling_edge(&self) -> Edge ⓘ;
    fn value_change(&self) -> Edge ⓘ;
}
Expand description

A trait for handles that have observable events

Required Methods§

Source

fn rising_edge(&self) -> Edge ⓘ

Get the rising edge event for this handle

Source

fn falling_edge(&self) -> Edge ⓘ

Get the falling edge event for this handle

Source

fn value_change(&self) -> Edge ⓘ

Get the value change event for this handle

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§