howudoin/consumers/
mod.rs1use super::*;
5
6#[cfg(feature = "term-line")]
8pub mod term_line;
9#[cfg(feature = "term-line")]
10pub use term_line::TermLine;
11
12#[cfg(feature = "json-printer")]
14pub mod json_printer;
15#[cfg(feature = "json-printer")]
16pub use json_printer::JsonPrinter;
17
18pub struct Noop(pub Duration);
24
25impl Default for Noop {
26 fn default() -> Self {
27 Noop(Duration::from_millis(50))
28 }
29}
30
31impl Consume for Noop {
32 fn debounce(&self) -> Duration {
33 self.0
34 }
35
36 fn rpt(&mut self, _: &report::Report, _: Id, _: Option<Id>, _: &Controller) {}
37}