Struct prometheus::core::GenericLocalCounterVec
source · pub struct GenericLocalCounterVec<P: Atomic> { /* private fields */ }
Expand description
The underlying implementation for LocalCounterVec
and LocalIntCounterVec
.
Implementations§
source§impl<P: Atomic> GenericLocalCounterVec<P>
impl<P: Atomic> GenericLocalCounterVec<P>
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<()>
pub fn remove_label_values(&mut self, vals: &[&str]) -> Result<()>
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: Atomic> Clone for GenericLocalCounterVec<P>
impl<P: Atomic> Clone for GenericLocalCounterVec<P>
source§impl<P: Atomic> Debug for GenericLocalCounterVec<P>
impl<P: Atomic> Debug for GenericLocalCounterVec<P>
source§impl<P: Atomic> LocalMetric for GenericLocalCounterVec<P>
impl<P: Atomic> LocalMetric for GenericLocalCounterVec<P>
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)