pub trait DebounceDriver {
// Required method
fn should_ignore_event(
&mut self,
event: &KeyChangeEvent,
now: Instant,
) -> bool;
}
Expand description
Debounce driver interface
Required Methods§
Sourcefn should_ignore_event(&mut self, event: &KeyChangeEvent, now: Instant) -> bool
fn should_ignore_event(&mut self, event: &KeyChangeEvent, now: Instant) -> bool
Determines whether events occurring at a certain time should be ignored.