Struct snarkos_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
sourcepub fn describe_counter(
&self,
_key: KeyName,
_unit: Option<Unit>,
_description: &'static str
)
pub fn describe_counter(
&self,
_key: KeyName,
_unit: Option<Unit>,
_description: &'static str
)
Describes a counter. Read more
sourcepub fn describe_gauge(
&self,
_key: KeyName,
_unit: Option<Unit>,
_description: &'static str
)
pub fn describe_gauge(
&self,
_key: KeyName,
_unit: Option<Unit>,
_description: &'static str
)
Describes a gauge. Read more
sourcepub fn describe_histogram(
&self,
_key: KeyName,
_unit: Option<Unit>,
_description: &'static str
)
pub fn describe_histogram(
&self,
_key: KeyName,
_unit: Option<Unit>,
_description: &'static str
)
Describes a histogram. Read more
sourcepub fn register_counter(&self, _key: &Key) -> Counter
pub fn register_counter(&self, _key: &Key) -> Counter
Registers a counter.
sourcepub fn register_gauge(&self, _key: &Key) -> Gauge
pub fn register_gauge(&self, _key: &Key) -> Gauge
Registers a gauge.
sourcepub fn register_histogram(&self, _key: &Key) -> Histogram
pub 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 · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more