Skip to main content
RKTK API Docs RKTK Home Repo

DebounceDriver

Trait DebounceDriver 

Source
pub trait DebounceDriver {
    // Required method
    fn should_ignore_event(
        &mut self,
        event: &KeyChangeEvent,
        now: Instant,
    ) -> bool;
}
Expand description

Debounce driver interface

Required Methods§

Source

fn should_ignore_event(&mut self, event: &KeyChangeEvent, now: Instant) -> bool

Determines whether events occurring at a certain time should be ignored.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§