pub struct MetricsSnapshot {
pub writes_total: u64,
pub reads_total: u64,
pub deletes_total: u64,
pub cache_hit_rate: f64,
pub avg_write_latency_us: f64,
pub avg_read_latency_us: f64,
pub contradictions_detected: u64,
pub speculative_hit_rate: f64,
}Expand description
A point-in-time snapshot of metrics.
Fields§
§writes_total: u64Total write operations.
reads_total: u64Total read operations.
deletes_total: u64Total delete operations.
cache_hit_rate: f64Cache hit rate (0.0–1.0).
avg_write_latency_us: f64Average write latency in microseconds.
avg_read_latency_us: f64Average read latency in microseconds.
contradictions_detected: u64Total contradictions detected.
speculative_hit_rate: f64Speculative cache hit rate (0.0–1.0).
Trait Implementations§
Source§impl Clone for MetricsSnapshot
impl Clone for MetricsSnapshot
Source§fn clone(&self) -> MetricsSnapshot
fn clone(&self) -> MetricsSnapshot
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 moreAuto Trait Implementations§
impl Freeze for MetricsSnapshot
impl RefUnwindSafe for MetricsSnapshot
impl Send for MetricsSnapshot
impl Sync for MetricsSnapshot
impl Unpin for MetricsSnapshot
impl UnsafeUnpin for MetricsSnapshot
impl UnwindSafe for MetricsSnapshot
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