pub struct ProcessorStats {
pub records_processed: u64,
pub records_modified: u64,
pub labels_generated: u64,
pub errors_encountered: u64,
pub processing_time_us: u64,
}Expand description
Statistics from a post-processor run.
Fields§
§records_processed: u64Number of records processed
records_modified: u64Number of records modified
labels_generated: u64Number of labels generated
errors_encountered: u64Number of errors encountered
processing_time_us: u64Processing time in microseconds
Implementations§
Source§impl ProcessorStats
impl ProcessorStats
Sourcepub fn modification_rate(&self) -> f64
pub fn modification_rate(&self) -> f64
Calculate modification rate.
Sourcepub fn merge(&mut self, other: &ProcessorStats)
pub fn merge(&mut self, other: &ProcessorStats)
Merge stats from another processor.
Trait Implementations§
Source§impl Clone for ProcessorStats
impl Clone for ProcessorStats
Source§fn clone(&self) -> ProcessorStats
fn clone(&self) -> ProcessorStats
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 ProcessorStats
impl Debug for ProcessorStats
Source§impl Default for ProcessorStats
impl Default for ProcessorStats
Source§fn default() -> ProcessorStats
fn default() -> ProcessorStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ProcessorStats
impl RefUnwindSafe for ProcessorStats
impl Send for ProcessorStats
impl Sync for ProcessorStats
impl Unpin for ProcessorStats
impl UnwindSafe for ProcessorStats
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