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 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl 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 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