Struct prometheus::local::LocalHistogramVec
source · pub struct LocalHistogramVec { /* private fields */ }
Expand description
An unsync HistogramVec
.
Implementations§
source§impl 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§
source§impl Clone for LocalHistogramVec
impl Clone for LocalHistogramVec
source§fn clone(&self) -> LocalHistogramVec
fn clone(&self) -> LocalHistogramVec
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 Debug for LocalHistogramVec
impl Debug for LocalHistogramVec
source§impl LocalMetric for LocalHistogramVec
impl LocalMetric for LocalHistogramVec
source§fn 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§
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