pub struct AccessStats {
pub total_ops: u64,
pub gets: u64,
pub puts: u64,
pub deletes: u64,
pub total_bytes_written: u64,
pub total_latency_us: u64,
pub failures: u64,
}Expand description
Aggregated statistics over all logged operations.
Fields§
§total_ops: u64Total number of operations logged (including failures).
gets: u64Number of Get operations.
puts: u64Number of Put operations.
deletes: u64Number of Delete operations.
total_bytes_written: u64Total bytes written across all Put and BatchPut operations.
total_latency_us: u64Sum of latencies (microseconds) across all operations.
failures: u64Number of operations that did not succeed.
Implementations§
Source§impl AccessStats
impl AccessStats
Sourcepub fn avg_latency_us(&self) -> f64
pub fn avg_latency_us(&self) -> f64
Average latency in microseconds. Returns 0.0 when no operations have been recorded.
Sourcepub fn error_rate(&self) -> f64
pub fn error_rate(&self) -> f64
Fraction of operations that failed. Returns 0.0 when no operations have been recorded.
Trait Implementations§
Source§impl Clone for AccessStats
impl Clone for AccessStats
Source§fn clone(&self) -> AccessStats
fn clone(&self) -> AccessStats
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AccessStats
impl Debug for AccessStats
Source§impl Default for AccessStats
impl Default for AccessStats
Source§fn default() -> AccessStats
fn default() -> AccessStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AccessStats
impl RefUnwindSafe for AccessStats
impl Send for AccessStats
impl Sync for AccessStats
impl Unpin for AccessStats
impl UnsafeUnpin for AccessStats
impl UnwindSafe for AccessStats
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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