Expand description
Time-based debouncers.
TimeDebouncers builds trailing debouncers that run after a quiet period,
leading debouncers that run at most once per window, and trailing-value
debouncers that deliver the latest value after a quiet period.
ⓘ
let d = TimeDebouncers::trailing(Duration::from_millis(200), || println!("fired"));
d.trigger();Structs§
- Leading
Debouncer - Runs the action immediately at most once per
window; triggers inside the window are ignored. - Time
Debouncers - Factory for trailing, leading, and trailing-value debouncers.
- Trailing
Debouncer - Runs the action once after a quiet
delay; each trigger restarts the timer. - Trailing
Value Debouncer - Runs the action with the latest offered value of type
Tafter a quiet delay.
Traits§
- Debouncer
- Debouncer without a payload: trailing or leading.
- Value
Debouncer - Debouncer that delivers a payload of type
T.