pub struct GenericCounterVec<P: Atomic>(/* private fields */);Implementations§
Source§impl<P: Atomic> GenericCounterVec<P>
impl<P: Atomic> GenericCounterVec<P>
pub fn new_some(inner: GenericCounterVec<P>) -> Self
pub fn new_none() -> Self
pub fn with_label_values<V>(&self, vals: &[V]) -> GenericCounter<P>
pub fn remove_label_values<V>(&self, vals: &[V]) -> Result<()>
pub fn get_metric_with<V, S: BuildHasher>( &self, labels: &HashMap<&str, V, S>, ) -> Result<GenericCounter<P>>
pub fn get_metric_with_label_values<V>( &self, vals: &[V], ) -> Result<GenericCounter<P>>
pub fn reset(&self)
Trait Implementations§
Source§impl<P: Atomic> Clone for GenericCounterVec<P>
impl<P: Atomic> Clone for GenericCounterVec<P>
Source§impl<P: Atomic> Collector for GenericCounterVec<P>
impl<P: Atomic> Collector for GenericCounterVec<P>
Auto Trait Implementations§
impl<P> Freeze for GenericCounterVec<P>
impl<P> !RefUnwindSafe for GenericCounterVec<P>
impl<P> Send for GenericCounterVec<P>
impl<P> Sync for GenericCounterVec<P>
impl<P> Unpin for GenericCounterVec<P>
impl<P> UnsafeUnpin for GenericCounterVec<P>
impl<P> !UnwindSafe for GenericCounterVec<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