#[non_exhaustive]pub struct BatchStats {
pub size: usize,
pub processing_duration: Duration,
pub success: bool,
pub item_latencies: Vec<Duration>,
pub queue_durations: Vec<Duration>,
}Expand description
Stats for a completed batch.
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.size: usizeThe number of items in the batch.
processing_duration: DurationHow long the batch took to process (including resource acquisition if not pre-acquired).
success: boolWhether the batch processed successfully.
item_latencies: Vec<Duration>Time from submission to result delivery, for each item in the batch.
queue_durations: Vec<Duration>Time each item spent in the batch queue before processing started.
Measured from when the worker received the item to when the batch began processing. Includes time waiting for the batch to fill, for concurrency capacity, and for resource acquisition.
Implementations§
Trait Implementations§
Source§impl Clone for BatchStats
impl Clone for BatchStats
Source§fn clone(&self) -> BatchStats
fn clone(&self) -> BatchStats
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 BatchStats
impl RefUnwindSafe for BatchStats
impl Send for BatchStats
impl Sync for BatchStats
impl Unpin for BatchStats
impl UnsafeUnpin for BatchStats
impl UnwindSafe for BatchStats
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