diff --git a/src/lib.rs b/src/lib.rs index 709f71b..f792eee 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -83,6 +83,12 @@ impl Debouncer> { } } +impl Debouncer<()> { + pub fn debounce_unit(&self) { + self.debounce((), |_acc, _event_data| ()); + } +} + impl Drop for Debouncer { fn drop(&mut self) { self.controller.notify_shutdown();