pub struct NoopMetricsRecorder;Expand description
Recorder used when the application does not configure metrics.
Trait Implementations§
Source§impl Clone for NoopMetricsRecorder
impl Clone for NoopMetricsRecorder
Source§fn clone(&self) -> NoopMetricsRecorder
fn clone(&self) -> NoopMetricsRecorder
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for NoopMetricsRecorder
Source§impl Debug for NoopMetricsRecorder
impl Debug for NoopMetricsRecorder
Source§impl Default for NoopMetricsRecorder
impl Default for NoopMetricsRecorder
Source§fn default() -> NoopMetricsRecorder
fn default() -> NoopMetricsRecorder
Returns the “default value” for a type. Read more
Source§impl MetricsRecorder for NoopMetricsRecorder
impl MetricsRecorder for NoopMetricsRecorder
Source§fn register_counter(
&self,
_name: &str,
_description: &str,
_labels: &[(&str, &str)],
) -> Arc<dyn CounterFn> ⓘ
fn register_counter( &self, _name: &str, _description: &str, _labels: &[(&str, &str)], ) -> Arc<dyn CounterFn> ⓘ
Register a monotonically increasing counter.
Source§fn register_gauge(
&self,
_name: &str,
_description: &str,
_labels: &[(&str, &str)],
) -> Arc<dyn GaugeFn> ⓘ
fn register_gauge( &self, _name: &str, _description: &str, _labels: &[(&str, &str)], ) -> Arc<dyn GaugeFn> ⓘ
Register an absolute point-in-time gauge.
Source§fn register_up_down_counter(
&self,
_name: &str,
_description: &str,
_labels: &[(&str, &str)],
) -> Arc<dyn UpDownCounterFn> ⓘ
fn register_up_down_counter( &self, _name: &str, _description: &str, _labels: &[(&str, &str)], ) -> Arc<dyn UpDownCounterFn> ⓘ
Register an additive counter that may increase or decrease.
Auto Trait Implementations§
impl Freeze for NoopMetricsRecorder
impl RefUnwindSafe for NoopMetricsRecorder
impl Send for NoopMetricsRecorder
impl Sync for NoopMetricsRecorder
impl Unpin for NoopMetricsRecorder
impl UnsafeUnpin for NoopMetricsRecorder
impl UnwindSafe for NoopMetricsRecorder
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request