pub fn push<M>(&mut self, metric: M)
    where
        M: 'static + ResourceMetric,
    {
        self.metrics.push(Box::new(metric))
    }
/// Pushes a single ResourceMetric into the resource.
Pushes a single ResourceMetric into the resource.
Pushes a single ResourceMetric into the resource .
pub fn push<M>(&mut self, metric: M)
    where
        M: 'static + ResourceMetric,
    {
        self.metrics.push(Box::new(metric))
    }
pub fn push < M > ( & mut self , metric : M ) where M : ' static + ResourceMetric , { self . metrics . push ( Box :: new ( metric ) ) }
Pushes a single ResourceMetric into the resource.
Pushes a single ResourceMetric into the resource .
&mut self
metric
M
&mut self
metric
M