pub enum ProgressEvent<'a> {
PhaseStarted {
phase: &'a str,
total_items: usize,
},
ItemProcessed {
current: usize,
total: usize,
},
BatchProcessed {
batch_size: usize,
cumulative: usize,
total: usize,
},
PhaseCompleted {
phase: &'a str,
groups_found: usize,
elapsed_ms: u64,
},
RunCompleted {
total_groups: usize,
total_elapsed_ms: u64,
},
ItemError {
item_id: &'a str,
error: &'a str,
},
}Expand description
An event emitted during deduplication progress.
Variants§
PhaseStarted
A detection phase has started.
Fields
ItemProcessed
A single item has been processed.
BatchProcessed
A batch of items has been processed.
Fields
PhaseCompleted
A detection phase has completed.
Fields
RunCompleted
The entire deduplication run has completed.
Fields
ItemError
An error occurred during processing (non-fatal; processing continues).
Implementations§
Source§impl ProgressEvent<'_>
impl ProgressEvent<'_>
Sourcepub fn percentage(&self) -> Option<f64>
pub fn percentage(&self) -> Option<f64>
Returns the progress percentage (0.0 - 100.0) if applicable.
Trait Implementations§
Source§impl<'a> Clone for ProgressEvent<'a>
impl<'a> Clone for ProgressEvent<'a>
Source§fn clone(&self) -> ProgressEvent<'a>
fn clone(&self) -> ProgressEvent<'a>
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 moreAuto Trait Implementations§
impl<'a> Freeze for ProgressEvent<'a>
impl<'a> RefUnwindSafe for ProgressEvent<'a>
impl<'a> Send for ProgressEvent<'a>
impl<'a> Sync for ProgressEvent<'a>
impl<'a> Unpin for ProgressEvent<'a>
impl<'a> UnsafeUnpin for ProgressEvent<'a>
impl<'a> UnwindSafe for ProgressEvent<'a>
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<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