[−][src]Struct metrics::NoopRecorder
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
impl Recorder for NoopRecorder
[src]
pub fn register_counter(
&self,
_key: Key,
_unit: Option<Unit>,
_description: Option<&'static str>
)
[src]
&self,
_key: Key,
_unit: Option<Unit>,
_description: Option<&'static str>
)
pub fn register_gauge(
&self,
_key: Key,
_unit: Option<Unit>,
_description: Option<&'static str>
)
[src]
&self,
_key: Key,
_unit: Option<Unit>,
_description: Option<&'static str>
)
pub fn register_histogram(
&self,
_key: Key,
_unit: Option<Unit>,
_description: Option<&'static str>
)
[src]
&self,
_key: Key,
_unit: Option<Unit>,
_description: Option<&'static str>
)
pub fn increment_counter(&self, _key: Key, _value: u64)
[src]
pub fn update_gauge(&self, _key: Key, _value: f64)
[src]
pub fn record_histogram(&self, _key: Key, _value: u64)
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,