pub struct WatcherInfo {
pub state: WatcherState,
pub events_processed: u64,
pub last_event_at: Option<SystemTime>,
pub debounce_window_ms: u64,
pub overflow_count: u64,
pub last_overflow_at: Option<SystemTime>,
pub stale_files_found: u64,
pub last_reconcile_at: Option<SystemTime>,
}Expand description
Snapshot of file watcher status for health reporting.
Fields§
§state: WatcherState§events_processed: u64§last_event_at: Option<SystemTime>§debounce_window_ms: u64§overflow_count: u64Number of watcher buffer overflow events detected.
last_overflow_at: Option<SystemTime>Wall-clock time of the most recent overflow event.
stale_files_found: u64Cumulative count of stale files found and re-indexed by reconciliation sweeps.
last_reconcile_at: Option<SystemTime>Wall-clock time of the most recent reconciliation sweep.
Implementations§
Source§impl WatcherInfo
impl WatcherInfo
pub fn detached_local_fallback() -> Self
pub fn is_local_fallback(&self) -> bool
Trait Implementations§
Source§impl Clone for WatcherInfo
impl Clone for WatcherInfo
Source§fn clone(&self) -> WatcherInfo
fn clone(&self) -> WatcherInfo
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 WatcherInfo
impl Debug for WatcherInfo
Auto Trait Implementations§
impl Freeze for WatcherInfo
impl RefUnwindSafe for WatcherInfo
impl Send for WatcherInfo
impl Sync for WatcherInfo
impl Unpin for WatcherInfo
impl UnsafeUnpin for WatcherInfo
impl UnwindSafe for WatcherInfo
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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