pub struct MetricSnapshot { /* private fields */ }Expand description
Immutable complete state for one metric in an emitted event.
Implementations§
Source§impl MetricSnapshot
impl MetricSnapshot
Sourcepub const fn unclassified(&self) -> u64
pub const fn unclassified(&self) -> u64
Returns completed work without an explicit outcome classification.
Sourcepub fn completion_fraction(&self) -> Option<f64>
pub fn completion_fraction(&self) -> Option<f64>
Returns the completed fraction when the total is positive and known.
Trait Implementations§
Source§impl Clone for MetricSnapshot
impl Clone for MetricSnapshot
Source§fn clone(&self) -> MetricSnapshot
fn clone(&self) -> MetricSnapshot
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 moreSource§impl Debug for MetricSnapshot
impl Debug for MetricSnapshot
impl Eq for MetricSnapshot
Source§impl PartialEq for MetricSnapshot
impl PartialEq for MetricSnapshot
impl StructuralPartialEq for MetricSnapshot
Auto Trait Implementations§
impl Freeze for MetricSnapshot
impl RefUnwindSafe for MetricSnapshot
impl Send for MetricSnapshot
impl Sync for MetricSnapshot
impl Unpin for MetricSnapshot
impl UnsafeUnpin for MetricSnapshot
impl UnwindSafe for MetricSnapshot
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