#[non_exhaustive]pub struct WatchBatch {
pub epoch: u64,
pub generation: u64,
pub changed: Vec<NsPath>,
pub rescan: bool,
}Expand description
One notification. See the module docs.
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.epoch: u64Chosen when the watch starts. A different epoch than the last batch means the watch was restarted: rescan.
generation: u64One more than the previous batch’s. The first batch is 1. A gap means batches were dropped: rescan.
changed: Vec<NsPath>The namespace paths that changed: deduplicated, sorted, and empty when rescan is set.
rescan: boolEvents were lost or the watched directory went away or came back: re-read everything you care about.
Implementations§
Trait Implementations§
Source§impl Clone for WatchBatch
impl Clone for WatchBatch
Source§impl Debug for WatchBatch
impl Debug for WatchBatch
impl Eq for WatchBatch
Source§impl PartialEq for WatchBatch
impl PartialEq for WatchBatch
impl StructuralPartialEq for WatchBatch
Auto Trait Implementations§
impl Forget for WatchBatch
impl Freeze for WatchBatch
impl Move for WatchBatch
impl RefUnwindSafe for WatchBatch
impl Send for WatchBatch
impl Sync for WatchBatch
impl Unpin for WatchBatch
impl UnsafeUnpin for WatchBatch
impl UnwindSafe for WatchBatch
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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<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 moreCreates a shared type from an unshared type.