pub struct DefragConfig {
pub min_fragmentation_threshold: f64,
pub min_improvement: f64,
pub max_moves_per_pass: usize,
pub skip_unmovable: bool,
pub compaction_alignment: u64,
}Expand description
Defragmentation configuration
Fields§
§min_fragmentation_threshold: f64Minimum fragmentation level to trigger defragmentation (0.0 - 1.0)
min_improvement: f64Minimum improvement required to proceed with defragmentation
max_moves_per_pass: usizeMaximum number of blocks to move in a single defragmentation pass
skip_unmovable: boolWhether to skip unmovable blocks and continue
compaction_alignment: u64Alignment for compacted blocks
Trait Implementations§
Source§impl Clone for DefragConfig
impl Clone for DefragConfig
Source§fn clone(&self) -> DefragConfig
fn clone(&self) -> DefragConfig
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 DefragConfig
impl Debug for DefragConfig
Auto Trait Implementations§
impl Freeze for DefragConfig
impl RefUnwindSafe for DefragConfig
impl Send for DefragConfig
impl Sync for DefragConfig
impl Unpin for DefragConfig
impl UnsafeUnpin for DefragConfig
impl UnwindSafe for DefragConfig
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