pub struct CounterSnapshot {
pub queries: u64,
pub writes: u64,
pub write_rows: u64,
pub errors_by_code: BTreeMap<String, u64>,
pub admin_ops: u64,
pub cache_hit: u64,
pub cache_miss: u64,
}Expand description
Snapshot of engine-internal counters returned by Engine::counters.
Public key set is owned by dev/design/lifecycle.md § Public key set
and locked by AC-004a. Reading a snapshot is non-perturbing per
AC-004c. The 0.6.0 surface exposes exactly these seven fields.
Fields§
§queries: u64§writes: u64§write_rows: u64§errors_by_code: BTreeMap<String, u64>§admin_ops: u64§cache_hit: u64§cache_miss: u64Trait Implementations§
Source§impl Clone for CounterSnapshot
impl Clone for CounterSnapshot
Source§fn clone(&self) -> CounterSnapshot
fn clone(&self) -> CounterSnapshot
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 CounterSnapshot
impl Debug for CounterSnapshot
Source§impl Default for CounterSnapshot
impl Default for CounterSnapshot
Source§fn default() -> CounterSnapshot
fn default() -> CounterSnapshot
Returns the “default value” for a type. Read more
impl Eq for CounterSnapshot
Source§impl PartialEq for CounterSnapshot
impl PartialEq for CounterSnapshot
impl StructuralPartialEq for CounterSnapshot
Auto Trait Implementations§
impl Freeze for CounterSnapshot
impl RefUnwindSafe for CounterSnapshot
impl Send for CounterSnapshot
impl Sync for CounterSnapshot
impl Unpin for CounterSnapshot
impl UnsafeUnpin for CounterSnapshot
impl UnwindSafe for CounterSnapshot
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