1use std::time::Duration;
2
3#[derive(Clone, Debug, Default, PartialEq, Eq)]
4pub struct Config {
5 pub watch: WatchConfig,
6}
7
8#[derive(Clone, Debug, PartialEq, Eq)]
10pub struct WatchConfig {
11 pub native: bool,
12 pub poll_interval: Option<Duration>,
13 pub compare_contents: bool,
14 pub debounce_timeout: Duration,
15 pub debounce_tick_rate: Option<Duration>,
16}
17
18impl Default for WatchConfig {
19 fn default() -> Self {
20 Self {
21 native: true,
22 poll_interval: None,
23 compare_contents: false,
24 debounce_timeout: Duration::from_millis(500),
25 debounce_tick_rate: None,
26 }
27 }
28}