pub struct DbStats {
pub pending_wal_bytes: usize,
pub segment_count: usize,
pub node_tombstone_count: usize,
pub edge_tombstone_count: usize,
pub last_compaction_ms: Option<i64>,
pub wal_sync_mode: String,
}Expand description
Read-only runtime statistics for introspection.
Fields§
§pending_wal_bytes: usizeBytes buffered in the WAL but not yet fsynced. Always 0 in Immediate mode.
segment_count: usizeNumber of on-disk segments (excludes the in-memory memtable).
node_tombstone_count: usizeNumber of node tombstones in the memtable (pending deletes).
edge_tombstone_count: usizeNumber of edge tombstones in the memtable (pending deletes).
last_compaction_ms: Option<i64>Wall-clock timestamp (ms since epoch) of the last completed compaction,
or None if no compaction has run since open.
wal_sync_mode: StringThe WAL sync mode this database was opened with.
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 UnsafeUnpin 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