pub struct WatchConfig {
pub settle: Duration,
pub max_hold: Duration,
pub relist_new_dirs: bool,
pub event_capacity: usize,
pub batch_path_capacity: usize,
pub intent_capacity: usize,
}Expand description
Tuning for event coalescing.
Fields§
§settle: DurationHow long the event stream must be quiet before a batch is emitted.
max_hold: DurationLongest a batch may be held open while events keep arriving. Without a ceiling, a continuously busy tree would never produce a delta at all.
relist_new_dirs: boolWhether a newly created directory triggers a re-list of its contents.
On by default, and it should stay on for inotify and kqueue: those backends install a directory’s watch only after the create event arrives, so files created in between are never reported by anything.
event_capacity: usizeMaximum raw backend events queued before overload collapses to one root invalidation. Backend callback threads never block on this queue.
batch_path_capacity: usizeMaximum distinct paths retained in one coalesced intent.
intent_capacity: usizeMaximum coalesced intents awaiting a consumer.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WatchConfig
impl RefUnwindSafe for WatchConfig
impl Send for WatchConfig
impl Sync for WatchConfig
impl Unpin for WatchConfig
impl UnsafeUnpin for WatchConfig
impl UnwindSafe for WatchConfig
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