pub struct VecObjectStoreMetricsRecorder { /* private fields */ }Expand description
In-memory recorder intended for tests and small local diagnostics.
Implementations§
Source§impl VecObjectStoreMetricsRecorder
impl VecObjectStoreMetricsRecorder
Sourcepub fn samples(&self) -> Vec<ObjectStoreMetricSample>
pub fn samples(&self) -> Vec<ObjectStoreMetricSample>
Returns a snapshot copy of every sample recorded so far.
Trait Implementations§
Source§impl Default for VecObjectStoreMetricsRecorder
impl Default for VecObjectStoreMetricsRecorder
Source§fn default() -> VecObjectStoreMetricsRecorder
fn default() -> VecObjectStoreMetricsRecorder
Returns the “default value” for a type. Read more
Source§impl ObjectStoreMetricsRecorder for VecObjectStoreMetricsRecorder
impl ObjectStoreMetricsRecorder for VecObjectStoreMetricsRecorder
Source§fn record(&self, sample: ObjectStoreMetricSample)
fn record(&self, sample: ObjectStoreMetricSample)
Accepts one completed sample without access to raw keys or provider error text.
Auto Trait Implementations§
impl !Freeze for VecObjectStoreMetricsRecorder
impl RefUnwindSafe for VecObjectStoreMetricsRecorder
impl Send for VecObjectStoreMetricsRecorder
impl Sync for VecObjectStoreMetricsRecorder
impl Unpin for VecObjectStoreMetricsRecorder
impl UnsafeUnpin for VecObjectStoreMetricsRecorder
impl UnwindSafe for VecObjectStoreMetricsRecorder
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more