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
sourceimpl Recorder for NoopRecorder
impl Recorder for NoopRecorder
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn register_counter(&self, _key: &Key) -> Counter
fn register_counter(&self, _key: &Key) -> Counter
Registers a counter.
sourcefn register_gauge(&self, _key: &Key) -> Gauge
fn register_gauge(&self, _key: &Key) -> Gauge
Registers a gauge.
sourcefn 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more