pub struct GenericLocalCounterVec<P>where
P: Atomic,{ /* private fields */ }
Expand description
The underlying implementation for LocalCounterVec
and LocalIntCounterVec
.
Implementations§
Source§impl<P> GenericLocalCounterVec<P>where
P: Atomic,
impl<P> GenericLocalCounterVec<P>where
P: Atomic,
Sourcepub fn with_label_values<'a>(
&'a mut self,
vals: &[&str],
) -> &'a mut GenericLocalCounter<P>
pub fn with_label_values<'a>( &'a mut self, vals: &[&str], ) -> &'a mut GenericLocalCounter<P>
Get a GenericLocalCounter
by label values.
See more MetricVec::with_label_values.
Sourcepub fn remove_label_values(&mut self, vals: &[&str]) -> Result<(), Error>
pub fn remove_label_values(&mut self, vals: &[&str]) -> Result<(), Error>
Remove a GenericLocalCounter
by label values.
See more MetricVec::remove_label_values.
Sourcepub fn flush(&self)
pub fn flush(&self)
Flush the local metrics to the CounterVec
metric.
Trait Implementations§
Source§impl<P> Clone for GenericLocalCounterVec<P>where
P: Atomic,
impl<P> Clone for GenericLocalCounterVec<P>where
P: Atomic,
Source§fn clone(&self) -> GenericLocalCounterVec<P>
fn clone(&self) -> GenericLocalCounterVec<P>
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 moreSource§impl<P> Debug for GenericLocalCounterVec<P>where
P: Atomic,
impl<P> Debug for GenericLocalCounterVec<P>where
P: Atomic,
Source§impl<P> LocalMetric for GenericLocalCounterVec<P>where
P: Atomic,
impl<P> LocalMetric for GenericLocalCounterVec<P>where
P: Atomic,
Source§fn flush(&self)
fn flush(&self)
Flush the local metrics to the CounterVec
metric.
Auto Trait Implementations§
impl<P> Freeze for GenericLocalCounterVec<P>
impl<P> !RefUnwindSafe for GenericLocalCounterVec<P>
impl<P> Send for GenericLocalCounterVec<P>
impl<P> !Sync for GenericLocalCounterVec<P>
impl<P> Unpin for GenericLocalCounterVec<P>
impl<P> !UnwindSafe for GenericLocalCounterVec<P>
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