#[non_exhaustive]pub struct WatcherStats {
pub requeries: u64,
pub changes: u64,
pub skipped: u64,
pub last_error: Option<WatcherErrorKind>,
}Expand description
A cheap point-in-time copy of the watcher’s health counters — see
RepoWatcher::stats. Lets a long-running consumer notice a watcher that is
silently skipping re-queries (e.g. a permanently wedged repository) instead
of inferring health from event silence.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.requeries: u64Re-query attempts started (settled bursts that reached the query step).
changes: u64Re-queries that emitted a RepoChange (the rest found no difference).
skipped: u64Re-queries skipped — transient query failures plus deadline overruns.
last_error: Option<WatcherErrorKind>What the most recent skip failed on; None when nothing was ever skipped.
Trait Implementations§
Source§impl Clone for WatcherStats
impl Clone for WatcherStats
Source§fn clone(&self) -> WatcherStats
fn clone(&self) -> WatcherStats
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 moreimpl Copy for WatcherStats
Auto Trait Implementations§
impl Freeze for WatcherStats
impl RefUnwindSafe for WatcherStats
impl Send for WatcherStats
impl Sync for WatcherStats
impl Unpin for WatcherStats
impl UnsafeUnpin for WatcherStats
impl UnwindSafe for WatcherStats
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