Struct metrics_util::debugging::Snapshot
source · pub struct Snapshot(/* private fields */);
Available on crate feature
debugging
only.Expand description
A point-in-time snapshot of all metrics in DebuggingRecorder
.
Implementations§
source§impl 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 Freeze for Snapshot
impl RefUnwindSafe for Snapshot
impl Send for Snapshot
impl Sync for Snapshot
impl Unpin for Snapshot
impl UnwindSafe for Snapshot
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