#[non_exhaustive]pub struct OperationStatistics {
pub span_count: u64,
pub bytes: MetricStatistics,
pub allocations: MetricStatistics,
pub peak_outstanding_bytes: Option<MetricStatistics>,
}Expand description
Statistics for one operation across the metrics the report exposes.
Exposed through ReportOperation::statistics so callers can consume the
same figures that are written to the machine-readable JSON output.
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.span_count: u64Number of spans the statistics were derived from (distinct from the total iteration count).
bytes: MetricStatisticsPer-iteration byte-count statistics.
allocations: MetricStatisticsPer-iteration allocation-count statistics.
peak_outstanding_bytes: Option<MetricStatistics>Per-iteration peak-outstanding-byte statistics, or None when the operation has no
peak to report.
See ReportOperation::peak_outstanding_bytes for when that is the case.
Trait Implementations§
Source§impl Clone for OperationStatistics
impl Clone for OperationStatistics
Source§fn clone(&self) -> OperationStatistics
fn clone(&self) -> OperationStatistics
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 moreimpl Copy for OperationStatistics
Auto Trait Implementations§
impl Freeze for OperationStatistics
impl RefUnwindSafe for OperationStatistics
impl Send for OperationStatistics
impl Sync for OperationStatistics
impl Unpin for OperationStatistics
impl UnsafeUnpin for OperationStatistics
impl UnwindSafe for OperationStatistics
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