pub struct MetricsSnapshot {
pub counters: HashMap<&'static str, u64>,
pub histograms: HashMap<&'static str, (u64, f64)>,
}Expand description
Snapshot of all metrics at a point in time.
Fields§
§counters: HashMap<&'static str, u64>Counter name -> current value.
histograms: HashMap<&'static str, (u64, f64)>Histogram name -> (count, mean).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MetricsSnapshot
impl RefUnwindSafe for MetricsSnapshot
impl Send for MetricsSnapshot
impl Sync for MetricsSnapshot
impl Unpin for MetricsSnapshot
impl UnsafeUnpin for MetricsSnapshot
impl UnwindSafe for MetricsSnapshot
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