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: SharedString
)
fn describe_counter( &self, _key: KeyName, _unit: Option<Unit>, _description: SharedString )
Describes a counter. Read more
source§fn describe_gauge(
&self,
_key: KeyName,
_unit: Option<Unit>,
_description: SharedString
)
fn describe_gauge( &self, _key: KeyName, _unit: Option<Unit>, _description: SharedString )
Describes a gauge. Read more
source§fn describe_histogram(
&self,
_key: KeyName,
_unit: Option<Unit>,
_description: SharedString
)
fn describe_histogram( &self, _key: KeyName, _unit: Option<Unit>, _description: SharedString )
Describes a histogram. Read more
Auto Trait Implementations§
impl Freeze for NoopRecorder
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