pub struct WatchConfig {
pub enabled: bool,
pub debounce_ms: u64,
pub max_latency_ms: u64,
pub periodic_sweep_secs: u64,
}Fields§
§enabled: boolRun the background file watcher (default true). RAG_RAT_NO_WATCH overrides this off at
the call site.
debounce_ms: u64Quiet window (ms) before a debounced reindex pass.
max_latency_ms: u64Hard cap (ms): force a pass after this much continuous activity, so sustained writes never starve the quiet-window debounce.
periodic_sweep_secs: u64Periodic backstop: run a pass at least this often even with no events (0 disables). Covers
event-blind filesystems (NFS, WSL2 /mnt) and a watcher that missed events, and bounds how
long a wedged peer can leave the index stale.
Trait Implementations§
Source§impl Clone for WatchConfig
impl Clone for WatchConfig
Source§fn clone(&self) -> WatchConfig
fn clone(&self) -> WatchConfig
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 WatchConfig
impl Debug for WatchConfig
Source§impl Default for WatchConfig
impl Default for WatchConfig
impl Eq for WatchConfig
Source§impl PartialEq for WatchConfig
impl PartialEq for WatchConfig
Source§fn eq(&self, other: &WatchConfig) -> bool
fn eq(&self, other: &WatchConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for WatchConfig
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
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more