pub struct MetricsRegistry { /* private fields */ }Expand description
Metric registry
Implementations§
Source§impl MetricsRegistry
impl MetricsRegistry
Sourcepub fn register_counter_with_labels(
&self,
name: &str,
help: &str,
labels: HashMap<String, String>,
) -> Arc<Counter> ⓘ
pub fn register_counter_with_labels( &self, name: &str, help: &str, labels: HashMap<String, String>, ) -> Arc<Counter> ⓘ
Register a Counter with labels
Sourcepub fn register_gauge_with_labels(
&self,
name: &str,
help: &str,
labels: HashMap<String, String>,
) -> Arc<Gauge> ⓘ
pub fn register_gauge_with_labels( &self, name: &str, help: &str, labels: HashMap<String, String>, ) -> Arc<Gauge> ⓘ
Register a Gauge with labels
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for MetricsRegistry
impl !RefUnwindSafe for MetricsRegistry
impl !UnwindSafe for MetricsRegistry
impl Send for MetricsRegistry
impl Sync for MetricsRegistry
impl Unpin for MetricsRegistry
impl UnsafeUnpin for MetricsRegistry
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