Struct prometheus::core::GenericLocalCounterVec
source · [−]pub struct GenericLocalCounterVec<P: Atomic> { /* private fields */ }
Expand description
The underlying implementation for LocalCounterVec
and LocalIntCounterVec
.
Implementations
sourceimpl<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
sourceimpl<P: Atomic> Clone for GenericLocalCounterVec<P>
impl<P: Atomic> Clone for GenericLocalCounterVec<P>
sourceimpl<P: Atomic> Debug for GenericLocalCounterVec<P>
impl<P: Atomic> Debug for GenericLocalCounterVec<P>
sourceimpl<P: Atomic> LocalMetric for GenericLocalCounterVec<P>
impl<P: Atomic> LocalMetric for GenericLocalCounterVec<P>
sourcefn flush(&self)
fn flush(&self)
Flush the local metrics to the CounterVec
metric.
Auto Trait Implementations
impl<P> !RefUnwindSafe for GenericLocalCounterVec<P>
impl<P> Send for GenericLocalCounterVec<P>
impl<P> !Sync for GenericLocalCounterVec<P>
impl<P> Unpin for GenericLocalCounterVec<P> where
<P as Atomic>::T: Unpin,
impl<P> !UnwindSafe for GenericLocalCounterVec<P>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more