pub struct NoopMetrics;Expand description
A no-op Metrics implementation that discards all events.
Trait Implementations§
Source§impl Debug for NoopMetrics
impl Debug for NoopMetrics
Source§impl Default for NoopMetrics
impl Default for NoopMetrics
Source§fn default() -> NoopMetrics
fn default() -> NoopMetrics
Returns the “default value” for a type. Read more
Source§impl Metrics for NoopMetrics
impl Metrics for NoopMetrics
Source§fn on_request(&self, _method: &str)
fn on_request(&self, _method: &str)
Called when a request is received, before processing.
Source§fn on_response(&self, _method: &str)
fn on_response(&self, _method: &str)
Called when a response is successfully sent.
Source§fn on_queue_depth_change(&self, _active_queues: usize)
fn on_queue_depth_change(&self, _active_queues: usize)
Called when the number of active event queues changes.
Auto Trait Implementations§
impl Freeze for NoopMetrics
impl RefUnwindSafe for NoopMetrics
impl Send for NoopMetrics
impl Sync for NoopMetrics
impl Unpin for NoopMetrics
impl UnsafeUnpin for NoopMetrics
impl UnwindSafe for NoopMetrics
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