Struct metrics_util::layers::Router
source · pub struct Router { /* private fields */ }Expand description
Routes metrics to specific target recorders.
More information on the behavior of the layer can be found in RouterBuilder.
Trait Implementations§
source§impl Recorder for Router
impl Recorder for Router
source§fn describe_counter(
&self,
key_name: KeyName,
unit: Option<Unit>,
description: SharedString
)
fn describe_counter( &self, key_name: KeyName, unit: Option<Unit>, description: SharedString )
Describes a counter. Read more
source§fn describe_gauge(
&self,
key_name: KeyName,
unit: Option<Unit>,
description: SharedString
)
fn describe_gauge( &self, key_name: KeyName, unit: Option<Unit>, description: SharedString )
Describes a gauge. Read more
source§fn describe_histogram(
&self,
key_name: KeyName,
unit: Option<Unit>,
description: SharedString
)
fn describe_histogram( &self, key_name: KeyName, unit: Option<Unit>, description: SharedString )
Describes a histogram. Read more
source§fn register_counter(&self, key: &Key) -> Counter
fn register_counter(&self, key: &Key) -> Counter
Registers a counter.
source§fn register_gauge(&self, key: &Key) -> Gauge
fn register_gauge(&self, key: &Key) -> Gauge
Registers a gauge.
source§fn register_histogram(&self, key: &Key) -> Histogram
fn register_histogram(&self, key: &Key) -> Histogram
Registers a histogram.
Auto Trait Implementations§
impl !RefUnwindSafe for Router
impl !Send for Router
impl !Sync for Router
impl Unpin for Router
impl !UnwindSafe for Router
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