pub struct DefaultMetricsRegistry { /* private fields */ }Expand description
Default metrics registry, stores all state in-memory.
Trait Implementations§
Source§impl Clone for DefaultMetricsRegistry
impl Clone for DefaultMetricsRegistry
Source§fn clone(&self) -> DefaultMetricsRegistry
fn clone(&self) -> DefaultMetricsRegistry
Returns a duplicate 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 Default for DefaultMetricsRegistry
impl Default for DefaultMetricsRegistry
Source§fn default() -> DefaultMetricsRegistry
fn default() -> DefaultMetricsRegistry
Returns the “default value” for a type. Read more
Source§impl MetricsRegistry for DefaultMetricsRegistry
impl MetricsRegistry for DefaultMetricsRegistry
Source§fn register_counter(
&self,
name: Cow<'static, str>,
labels: Vec<Label>,
) -> Counter
fn register_counter( &self, name: Cow<'static, str>, labels: Vec<Label>, ) -> Counter
Create a counter with the given name and labels.
Source§fn register_histogram(
&self,
name: Cow<'static, str>,
labels: Vec<Label>,
) -> Histogram
fn register_histogram( &self, name: Cow<'static, str>, labels: Vec<Label>, ) -> Histogram
Create a histogram with the given name and labels.
Source§fn register_timer(&self, name: Cow<'static, str>, labels: Vec<Label>) -> Timer
fn register_timer(&self, name: Cow<'static, str>, labels: Vec<Label>) -> Timer
Create a timer with the given name and labels.
Auto Trait Implementations§
impl Freeze for DefaultMetricsRegistry
impl !RefUnwindSafe for DefaultMetricsRegistry
impl Send for DefaultMetricsRegistry
impl Sync for DefaultMetricsRegistry
impl Unpin for DefaultMetricsRegistry
impl UnsafeUnpin for DefaultMetricsRegistry
impl !UnwindSafe for DefaultMetricsRegistry
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