Struct metrics_util::debugging::Snapshot
source · [−]pub struct Snapshot(_);
Expand description
A point-in-time snapshot of all metrics in DebuggingRecorder
.
Implementations
sourceimpl Snapshot
impl Snapshot
sourcepub fn into_hashmap(
self
) -> HashMap<CompositeKey, (Option<Unit>, Option<SharedString>, DebugValue)>
pub fn into_hashmap(
self
) -> HashMap<CompositeKey, (Option<Unit>, Option<SharedString>, DebugValue)>
Converts this snapshot to a mapping of metric data, keyed by the metric key itself.
sourcepub fn into_vec(
self
) -> Vec<(CompositeKey, Option<Unit>, Option<SharedString>, DebugValue)>
pub fn into_vec(
self
) -> Vec<(CompositeKey, Option<Unit>, Option<SharedString>, DebugValue)>
Converts this snapshot to a vector of metric data tuples.
Auto Trait Implementations
impl RefUnwindSafe for Snapshot
impl Send for Snapshot
impl Sync for Snapshot
impl Unpin for Snapshot
impl UnwindSafe for Snapshot
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more