pub struct PoolOptimizationConfig {
pub auto_defrag_enabled: bool,
pub auto_defrag_threshold: f32,
pub defrag_min_interval: Duration,
pub health_monitoring_enabled: bool,
pub health_check_interval: Duration,
pub diagnostics_integration: bool,
pub max_pressure_threshold: f32,
}Expand description
Configuration for automatic memory pool optimization
Fields§
§auto_defrag_enabled: boolEnable automatic defragmentation
auto_defrag_threshold: f32Fragmentation threshold to trigger defragmentation (0.0-1.0)
defrag_min_interval: DurationMinimum interval between defragmentation runs
health_monitoring_enabled: boolEnable automatic health monitoring
health_check_interval: DurationInterval for health checks
diagnostics_integration: boolEnable diagnostic integration
max_pressure_threshold: f32Maximum memory pressure before triggering aggressive cleanup
Trait Implementations§
Source§impl Clone for PoolOptimizationConfig
impl Clone for PoolOptimizationConfig
Source§fn clone(&self) -> PoolOptimizationConfig
fn clone(&self) -> PoolOptimizationConfig
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 PoolOptimizationConfig
impl Debug for PoolOptimizationConfig
Auto Trait Implementations§
impl Freeze for PoolOptimizationConfig
impl RefUnwindSafe for PoolOptimizationConfig
impl Send for PoolOptimizationConfig
impl Sync for PoolOptimizationConfig
impl Unpin for PoolOptimizationConfig
impl UnsafeUnpin for PoolOptimizationConfig
impl UnwindSafe for PoolOptimizationConfig
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