pub struct Metric<M: MetricType> { /* private fields */ }Implementations§
source§impl<M: MetricType> Metric<M>
impl<M: MetricType> Metric<M>
pub fn new_metric(metadata: M::Metadata) -> Self
pub fn get_metric(&self) -> MetricRef<'_, M>
source§impl<M: MetricType> Metric<M>
impl<M: MetricType> Metric<M>
pub fn collect_into<T>(&self, name: impl MetricName, enc: &mut T)where
M: MetricEncoder<T>,
Auto Trait Implementations§
impl<M> RefUnwindSafe for Metric<M>
impl<M> Send for Metric<M>
impl<M> Sync for Metric<M>
impl<M> Unpin for Metric<M>
impl<M> UnwindSafe for Metric<M>
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