pub struct NoopObserver;Expand description
An observer that ignores everything.
Trait Implementations§
Source§impl Clone for NoopObserver
impl Clone for NoopObserver
impl Copy for NoopObserver
Source§impl Debug for NoopObserver
impl Debug for NoopObserver
Source§impl Default for NoopObserver
impl Default for NoopObserver
Source§impl Observer for NoopObserver
impl Observer for NoopObserver
Source§fn observe_labeled(&self, signal: &Signal, labels: &SignalLabels)
fn observe_labeled(&self, signal: &Signal, labels: &SignalLabels)
Observes a signal with labels. The default drops the labels.
Source§fn observe_duration(
&self,
signal: &Signal,
duration: Duration,
labels: &SignalLabels,
)
fn observe_duration( &self, signal: &Signal, duration: Duration, labels: &SignalLabels, )
Observes a duration signal (
SignalKind::DurationMillis or
SignalKind::DurationMicros) with its measured value. The default
drops the value and forwards to Observer::observe_labeled.Auto Trait Implementations§
impl Freeze for NoopObserver
impl RefUnwindSafe for NoopObserver
impl Send for NoopObserver
impl Sync for NoopObserver
impl Unpin for NoopObserver
impl UnsafeUnpin for NoopObserver
impl UnwindSafe for NoopObserver
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