Struct metriken::MetricEntry
source · pub struct MetricEntry { /* private fields */ }
Expand description
A statically declared metric entry.
Implementations§
source§impl MetricEntry
impl MetricEntry
sourcepub fn metric(&self) -> &(dyn Metric + 'static)
pub fn metric(&self) -> &(dyn Metric + 'static)
Get a reference to the metric that this entry corresponds to.
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
Get the description of this metric.
Trait Implementations§
source§impl Debug for MetricEntry
impl Debug for MetricEntry
source§impl Deref for MetricEntry
impl Deref for MetricEntry
impl Send for MetricEntry
impl Sync for MetricEntry
Auto Trait Implementations§
impl Freeze for MetricEntry
impl !RefUnwindSafe for MetricEntry
impl Unpin for MetricEntry
impl !UnwindSafe for MetricEntry
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