pub struct Metric<'a> {
pub key: &'a str,
pub val: f64,
pub avg: bool,
pub fmt: Option<&'a str>,
}Expand description
A single metric entry
Fields§
§key: &'a strThe name of the metric
val: f64The value of the metric
avg: boolIndicates if the value represents an average or not
fmt: Option<&'a str>C++ string formatter of the metric
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Metric<'a>
impl<'a> RefUnwindSafe for Metric<'a>
impl<'a> Send for Metric<'a>
impl<'a> Sync for Metric<'a>
impl<'a> Unpin for Metric<'a>
impl<'a> UnwindSafe for Metric<'a>
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