pub struct CompactionStats {
pub snapshot_index: LogIndex,
pub last_applied: LogIndex,
pub compactable_entries: u64,
pub compactable_bytes: u64,
}Expand description
Observed log retention relative to the last snapshot.
Fields§
§snapshot_index: LogIndexHighest index covered by the current snapshot (0 if none).
last_applied: LogIndexHighest index applied to the state machine.
compactable_entries: u64Applied entries not yet compacted (last_applied - snapshot_index).
compactable_bytes: u64Estimated byte size of the compactable prefix.
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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CompactionStats
Source§impl Debug for CompactionStats
impl Debug for CompactionStats
impl Eq for CompactionStats
Source§impl PartialEq for CompactionStats
impl PartialEq for CompactionStats
impl StructuralPartialEq for CompactionStats
Auto Trait Implementations§
impl Freeze for CompactionStats
impl RefUnwindSafe for CompactionStats
impl Send for CompactionStats
impl Sync for CompactionStats
impl Unpin for CompactionStats
impl UnsafeUnpin 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