pub struct NoopDbMetrics;Expand description
Metrics recorder that ignores every database query.
Trait Implementations§
Source§impl DbMetricsRecorder for NoopDbMetrics
impl DbMetricsRecorder for NoopDbMetrics
Source§fn record_db_query(&self, _metric: &DbQueryMetric)
fn record_db_query(&self, _metric: &DbQueryMetric)
Records one database query metric.
Source§impl Debug for NoopDbMetrics
impl Debug for NoopDbMetrics
Source§impl Default for NoopDbMetrics
impl Default for NoopDbMetrics
Source§fn default() -> NoopDbMetrics
fn default() -> NoopDbMetrics
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for NoopDbMetrics
impl RefUnwindSafe for NoopDbMetrics
impl Send for NoopDbMetrics
impl Sync for NoopDbMetrics
impl Unpin for NoopDbMetrics
impl UnsafeUnpin for NoopDbMetrics
impl UnwindSafe for NoopDbMetrics
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