pub struct DbStats {
pub reads: usize,
pub writes: usize,
pub updates: usize,
pub deletes: usize,
pub cache_hits: usize,
pub cache_misses: usize,
pub read_time_ms: u64,
pub write_time_ms: u64,
pub update_time_ms: u64,
pub delete_time_ms: u64,
}Expand description
Database statistics
Fields§
§reads: usizeRead operations
writes: usizeWrite operations
updates: usizeUpdate operations
deletes: usizeDelete operations
cache_hits: usizeCache hits
cache_misses: usizeCache misses
read_time_ms: u64Total time spent in read operations (ms)
write_time_ms: u64Total time spent in write operations (ms)
update_time_ms: u64Total time spent in update operations (ms)
delete_time_ms: u64Total time spent in delete operations (ms)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DbStats
impl RefUnwindSafe for DbStats
impl Send for DbStats
impl Sync for DbStats
impl Unpin for DbStats
impl UnwindSafe for DbStats
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> 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