pub struct IteratorStats {
pub bytes_processed: u64,
pub elements_yielded: usize,
pub current_depth: usize,
pub memory_usage: usize,
pub elapsed: Duration,
pub is_finished: bool,
pub has_error: bool,
}
Expand description
Statistics about iterator state
Fields§
§bytes_processed: u64
§elements_yielded: usize
§current_depth: usize
§memory_usage: usize
§elapsed: Duration
§is_finished: bool
§has_error: bool
Implementations§
Source§impl IteratorStats
impl IteratorStats
Sourcepub fn bytes_per_second(&self) -> f64
pub fn bytes_per_second(&self) -> f64
Get processing rate in bytes per second
Sourcepub fn elements_per_second(&self) -> f64
pub fn elements_per_second(&self) -> f64
Get element processing rate per second
Sourcepub fn memory_usage_mb(&self) -> f64
pub fn memory_usage_mb(&self) -> f64
Get memory usage in MB
Sourcepub fn throughput_mibs(&self) -> f64
pub fn throughput_mibs(&self) -> f64
Get throughput in MiB/s
Trait Implementations§
Source§impl Clone for IteratorStats
impl Clone for IteratorStats
Source§fn clone(&self) -> IteratorStats
fn clone(&self) -> IteratorStats
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 Freeze for IteratorStats
impl RefUnwindSafe for IteratorStats
impl Send for IteratorStats
impl Sync for IteratorStats
impl Unpin for IteratorStats
impl UnwindSafe for IteratorStats
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