pub struct TableStats {
pub records: usize,
pub live_bytes: u64,
pub dead_bytes: u64,
pub log_bytes: u64,
pub queue_depth: usize,
pub gen: u64,
pub seq: u64,
}Expand description
The counters behind Table::stats, in the shape of the TS TableStats.
Fields§
§records: usize§live_bytes: u64§dead_bytes: u64§log_bytes: u64§queue_depth: usizeWrites staged but not yet appended — 0 unless a caller staged through
Table::stage_put and friends without flushing yet, since put/patch/delete stage and
flush inside the same call.
gen: u64The log’s generation: how many times it has been rewritten under this registry, counting
both this handle’s own Table::compact and the rebuilds Table::refresh does after
another process compacted underneath it. Persisted in the snapshot header and carried over
on the next open, so it survives a restart rather than starting from 0 again.
seq: u64Trait Implementations§
Source§impl Clone for TableStats
impl Clone for TableStats
impl Copy for TableStats
Source§impl Debug for TableStats
impl Debug for TableStats
impl Eq for TableStats
Source§impl PartialEq for TableStats
impl PartialEq for TableStats
impl StructuralPartialEq for TableStats
Auto Trait Implementations§
impl Freeze for TableStats
impl RefUnwindSafe for TableStats
impl Send for TableStats
impl Sync for TableStats
impl Unpin for TableStats
impl UnsafeUnpin for TableStats
impl UnwindSafe for TableStats
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.