[][src]Trait picollar::debounce::Debounceable

pub trait Debounceable: Copy + Clone + Send + Sync {
    type Spec;
    fn pins(spec: &Self::Spec) -> &[Pin];
fn interpret(pin_states: &[GpioChange]) -> Option<Self>;
fn delay() -> Duration;
fn description() -> String;
fn equivalent(&self, other: &Self) -> bool; }

Associated Types

type Spec

Loading content...

Required methods

fn pins(spec: &Self::Spec) -> &[Pin]

fn interpret(pin_states: &[GpioChange]) -> Option<Self>

fn delay() -> Duration

fn description() -> String

fn equivalent(&self, other: &Self) -> bool

Loading content...

Implementors

impl Debounceable for Mode[src]

type Spec = [Pin; 2]

Loading content...