pub struct FileWatcherConfig {
pub debounce: Duration,
pub inactivity_timeout: Duration,
pub ignore_patterns: Vec<String>,
}Expand description
Configuration for the FileWatcher.
Fields§
§debounce: DurationHow long to debounce filesystem events before emitting.
inactivity_timeout: DurationHow long without changes before the watcher stops.
ignore_patterns: Vec<String>Directory names to ignore (e.g., “.git”, “target”).
Trait Implementations§
Source§impl Clone for FileWatcherConfig
impl Clone for FileWatcherConfig
Source§fn clone(&self) -> FileWatcherConfig
fn clone(&self) -> FileWatcherConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 FileWatcherConfig
impl Debug for FileWatcherConfig
Auto Trait Implementations§
impl Freeze for FileWatcherConfig
impl RefUnwindSafe for FileWatcherConfig
impl Send for FileWatcherConfig
impl Sync for FileWatcherConfig
impl Unpin for FileWatcherConfig
impl UnsafeUnpin for FileWatcherConfig
impl UnwindSafe for FileWatcherConfig
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