pub struct CompactionOptions {
pub tombstone_grace: Duration,
pub min_bytes: u64,
pub max_segments: usize,
pub emit_snapshot: bool,
}Expand description
Options for controlling log compaction behavior.
Fields§
§tombstone_grace: DurationMinimum age before tombstones are permanently removed
min_bytes: u64Minimum bytes to accumulate before compaction runs
max_segments: usizeMaximum number of segments to compact in one pass
emit_snapshot: boolWhether to emit a snapshot after compaction
Trait Implementations§
Source§impl Clone for CompactionOptions
impl Clone for CompactionOptions
Source§fn clone(&self) -> CompactionOptions
fn clone(&self) -> CompactionOptions
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 moreAuto Trait Implementations§
impl Freeze for CompactionOptions
impl RefUnwindSafe for CompactionOptions
impl Send for CompactionOptions
impl Sync for CompactionOptions
impl Unpin for CompactionOptions
impl UnsafeUnpin for CompactionOptions
impl UnwindSafe for CompactionOptions
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