pub type LabelGuardedLocalIntCounter<const N: usize> = LabelGuardedMetric<LocalIntCounter, N>;
Aliased Type§
struct LabelGuardedLocalIntCounter<const N: usize> {
inner: GenericLocalCounter<AtomicU64>,
_guard: Arc<LabelGuard<N>>,
}
Fields§
§inner: GenericLocalCounter<AtomicU64>
§_guard: Arc<LabelGuard<N>>
Implementations
Source§impl<T: MetricWithLocal, const N: usize> LabelGuardedMetric<T, N>
impl<T: MetricWithLocal, const N: usize> LabelGuardedMetric<T, N>
pub fn local(&self) -> LabelGuardedMetric<T::Local, N>
Trait Implementations
Source§impl<T: Clone, const N: usize> Clone for LabelGuardedMetric<T, N>
impl<T: Clone, const N: usize> Clone for LabelGuardedMetric<T, N>
Source§fn clone(&self) -> LabelGuardedMetric<T, N>
fn clone(&self) -> LabelGuardedMetric<T, N>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more