pub struct DefragConfig {
pub auto_defrag: bool,
pub fragmentation_threshold: f64,
pub max_defrag_time: Duration,
pub min_free_space: usize,
pub incremental_defrag: bool,
pub incremental_chunk_size: usize,
pub parallel_defrag: bool,
pub worker_threads: usize,
pub preferred_algorithm: CompactionAlgorithm,
pub enable_stats: bool,
}Expand description
Defragmentation configuration
Fields§
§auto_defrag: boolEnable automatic defragmentation
fragmentation_threshold: f64Fragmentation threshold for triggering defrag (0.0-1.0)
max_defrag_time: DurationMaximum time to spend on defragmentation per cycle
min_free_space: usizeMinimum free space required before defragmentation
incremental_defrag: boolEnable incremental defragmentation
incremental_chunk_size: usizeChunk size for incremental operations
parallel_defrag: boolEnable parallel defragmentation
worker_threads: usizeNumber of worker threads for parallel operations
preferred_algorithm: CompactionAlgorithmCompaction algorithm preference
enable_stats: boolEnable statistics collection
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more