pub struct CompactionStats {
pub snapshots_created: u64,
pub nodes_pruned: u64,
pub last_compaction: Option<u64>,
pub ops_since_compaction: u64,
pub current_dag_size: usize,
pub snapshot_count: usize,
}Expand description
Statistics about compaction operations.
Fields§
§snapshots_created: u64Total snapshots created.
nodes_pruned: u64Total nodes pruned.
last_compaction: Option<u64>Last compaction timestamp.
ops_since_compaction: u64Operations since last compaction.
current_dag_size: usizeCurrent DAG size (nodes).
snapshot_count: usizeCurrent snapshot count.
Trait Implementations§
Source§impl Clone for CompactionStats
impl Clone for CompactionStats
Source§fn clone(&self) -> CompactionStats
fn clone(&self) -> CompactionStats
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 moreSource§impl Debug for CompactionStats
impl Debug for CompactionStats
Source§impl Default for CompactionStats
impl Default for CompactionStats
Source§fn default() -> CompactionStats
fn default() -> CompactionStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CompactionStats
impl RefUnwindSafe for CompactionStats
impl Send for CompactionStats
impl Sync for CompactionStats
impl Unpin for CompactionStats
impl UnwindSafe for CompactionStats
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