pub struct Metric { /* private fields */ }Expand description
A collection of one or more aggregated time series from an Instrument.
Implementations§
Source§impl Metric
impl Metric
Sourcepub fn description(&self) -> &str
pub fn description(&self) -> &str
Returns the description of the instrument.
Sourcepub fn data(&self) -> &AggregatedMetrics
pub fn data(&self) -> &AggregatedMetrics
Returns the aggregated data from the instrument.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Metric
impl RefUnwindSafe for Metric
impl Send for Metric
impl Sync for Metric
impl Unpin for Metric
impl UnwindSafe for Metric
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