Struct prometheus::local::LocalHistogramVec
source · [−]pub struct LocalHistogramVec { /* private fields */ }
Expand description
An unsync HistogramVec
.
Implementations
sourceimpl LocalHistogramVec
impl LocalHistogramVec
sourcepub fn with_label_values<'a>(&'a mut self, vals: &[&str]) -> &'a LocalHistogram
pub fn with_label_values<'a>(&'a mut self, vals: &[&str]) -> &'a LocalHistogram
Get a LocalHistogram
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 LocalHistogram
by label values.
See more MetricVec::remove_label_values
.
sourcepub fn flush(&self)
pub fn flush(&self)
Flush the local metrics to the HistogramVec
metric.
Trait Implementations
sourceimpl Clone for LocalHistogramVec
impl Clone for LocalHistogramVec
sourcefn clone(&self) -> LocalHistogramVec
fn clone(&self) -> LocalHistogramVec
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for LocalHistogramVec
impl Debug for LocalHistogramVec
sourceimpl LocalMetric for LocalHistogramVec
impl LocalMetric for LocalHistogramVec
sourcefn flush(&self)
fn flush(&self)
Flush the local metrics to the HistogramVec
metric.
Auto Trait Implementations
impl !RefUnwindSafe for LocalHistogramVec
impl Send for LocalHistogramVec
impl !Sync for LocalHistogramVec
impl Unpin for LocalHistogramVec
impl !UnwindSafe for LocalHistogramVec
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more