pub struct WatcherConfig {
pub enabled: bool,
pub debounce: Duration,
pub commit_reconcile_interval: Duration,
pub max_watch_dirs: usize,
pub hash_cache_capacity: usize,
}Fields§
§enabled: bool§debounce: Duration§commit_reconcile_interval: Duration§max_watch_dirs: usize§hash_cache_capacity: usizeImplementations§
Source§impl WatcherConfig
impl WatcherConfig
pub const DEFAULT_DEBOUNCE_MS: u64 = 3000
pub const DEFAULT_COMMIT_RECONCILE_INTERVAL_MS: u64 = 5000
pub const DEFAULT_MAX_WATCH_DIRS: usize = 1024
pub const DEFAULT_HASH_CACHE_CAPACITY: usize = 4096
pub fn from_environment(overrides: &WatcherEnvOverrides) -> Self
Trait Implementations§
Source§impl Clone for WatcherConfig
impl Clone for WatcherConfig
Source§fn clone(&self) -> WatcherConfig
fn clone(&self) -> WatcherConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WatcherConfig
impl Debug for WatcherConfig
Source§impl Default for WatcherConfig
impl Default for WatcherConfig
impl Eq for WatcherConfig
Source§impl PartialEq for WatcherConfig
impl PartialEq for WatcherConfig
impl StructuralPartialEq for WatcherConfig
Auto Trait Implementations§
impl Freeze for WatcherConfig
impl RefUnwindSafe for WatcherConfig
impl Send for WatcherConfig
impl Sync for WatcherConfig
impl Unpin for WatcherConfig
impl UnsafeUnpin for WatcherConfig
impl UnwindSafe for WatcherConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.