pub struct CompactionConfig {
pub strategy: CompactionStrategy,
pub fragmentation_threshold: f64,
pub max_fragments: usize,
pub min_compact_interval: Duration,
pub auto_compact: bool,
}Expand description
Compaction configuration
Fields§
§strategy: CompactionStrategyCompaction strategy
fragmentation_threshold: f64Fragmentation threshold to trigger compaction (0.0 - 1.0)
max_fragments: usizeMaximum number of fragments before compaction
min_compact_interval: DurationMinimum interval between compactions
auto_compact: boolEnable automatic compaction
Trait Implementations§
Source§impl Clone for CompactionConfig
impl Clone for CompactionConfig
Source§fn clone(&self) -> CompactionConfig
fn clone(&self) -> CompactionConfig
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 CompactionConfig
impl Debug for CompactionConfig
Auto Trait Implementations§
impl Freeze for CompactionConfig
impl RefUnwindSafe for CompactionConfig
impl Send for CompactionConfig
impl Sync for CompactionConfig
impl Unpin for CompactionConfig
impl UnsafeUnpin for CompactionConfig
impl UnwindSafe for CompactionConfig
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