pub struct NoOpMetrics;Expand description
No-op metrics implementation (default)
Trait Implementations§
Source§impl AuthMetrics for NoOpMetrics
impl AuthMetrics for NoOpMetrics
Source§fn record_event(&self, _event: AuthEvent, _labels: &AuthMetricLabels)
fn record_event(&self, _event: AuthEvent, _labels: &AuthMetricLabels)
Record an auth event
Source§fn record_duration(&self, _duration_ms: u64, _labels: &AuthMetricLabels)
fn record_duration(&self, _duration_ms: u64, _labels: &AuthMetricLabels)
Record validation duration
Source§impl Clone for NoOpMetrics
impl Clone for NoOpMetrics
Source§fn clone(&self) -> NoOpMetrics
fn clone(&self) -> NoOpMetrics
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NoOpMetrics
impl Debug for NoOpMetrics
impl Copy for NoOpMetrics
Auto Trait Implementations§
impl Freeze for NoOpMetrics
impl RefUnwindSafe for NoOpMetrics
impl Send for NoOpMetrics
impl Sync for NoOpMetrics
impl Unpin 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