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
Auto Trait Implementations§
impl Freeze for Router
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