Struct metrics::NoopRecorder
source · pub struct NoopRecorder;
Expand description
A no-op recorder.
Used as the default recorder when one has not been installed yet. Useful for acting as the root recorder when testing layers.
Trait Implementations§
source§impl Recorder for NoopRecorder
impl Recorder for NoopRecorder
source§fn describe_counter(
&self,
_key: KeyName,
_unit: Option<Unit>,
_description: &'static str
)
fn describe_counter( &self, _key: KeyName, _unit: Option<Unit>, _description: &'static str )
Describes a counter. Read more
source§fn describe_gauge(
&self,
_key: KeyName,
_unit: Option<Unit>,
_description: &'static str
)
fn describe_gauge( &self, _key: KeyName, _unit: Option<Unit>, _description: &'static str )
Describes a gauge. Read more
source§fn describe_histogram(
&self,
_key: KeyName,
_unit: Option<Unit>,
_description: &'static str
)
fn describe_histogram( &self, _key: KeyName, _unit: Option<Unit>, _description: &'static str )
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 NoopRecorder
impl Send for NoopRecorder
impl Sync for NoopRecorder
impl Unpin for NoopRecorder
impl UnwindSafe for NoopRecorder
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