pub struct WatchBatchNormalizer { /* private fields */ }Expand description
Stateful batch normalizer for watcher events.
Implementations§
Source§impl WatchBatchNormalizer
impl WatchBatchNormalizer
Sourcepub fn push(&mut self, event: RawWatchEvent)
pub fn push(&mut self, event: RawWatchEvent)
Queue a raw host event for the next drain.
Sourcepub fn drain(&mut self, current_generation: u64) -> FlushResult
pub fn drain(&mut self, current_generation: u64) -> FlushResult
Normalize and coalesce queued events.
Trait Implementations§
Source§impl Clone for WatchBatchNormalizer
impl Clone for WatchBatchNormalizer
Source§fn clone(&self) -> WatchBatchNormalizer
fn clone(&self) -> WatchBatchNormalizer
Returns a duplicate of the value. Read more
1.0.0 · 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 WatchBatchNormalizer
impl Debug for WatchBatchNormalizer
Source§impl Default for WatchBatchNormalizer
impl Default for WatchBatchNormalizer
Source§fn default() -> WatchBatchNormalizer
fn default() -> WatchBatchNormalizer
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for WatchBatchNormalizer
impl RefUnwindSafe for WatchBatchNormalizer
impl Send for WatchBatchNormalizer
impl Sync for WatchBatchNormalizer
impl Unpin for WatchBatchNormalizer
impl UnsafeUnpin for WatchBatchNormalizer
impl UnwindSafe for WatchBatchNormalizer
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