pub struct GCConfig {Show 13 fields
pub auto_gc: bool,
pub gc_threshold: f64,
pub max_pause_time: Duration,
pub enable_generational: bool,
pub enable_incremental: bool,
pub enable_concurrent: bool,
pub young_gen_ratio: f64,
pub survivor_ratio: f64,
pub tenuring_threshold: u32,
pub enable_stats: bool,
pub preferred_algorithm: GCAlgorithm,
pub parallel_gc: bool,
pub gc_threads: usize,
}Expand description
Garbage collection configuration
Fields§
§auto_gc: boolEnable automatic garbage collection
gc_threshold: f64GC trigger threshold (memory usage ratio)
max_pause_time: DurationMaximum pause time for real-time GC (milliseconds)
enable_generational: boolEnable generational collection
enable_incremental: boolEnable incremental collection
enable_concurrent: boolEnable concurrent collection
young_gen_ratio: f64Young generation size ratio
survivor_ratio: f64Survivor space ratio
tenuring_threshold: u32Tenuring threshold for promotion
enable_stats: boolEnable statistics collection
preferred_algorithm: GCAlgorithmGC algorithm preference
parallel_gc: boolEnable parallel collection
gc_threads: usizeNumber of GC worker threads
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GCConfig
impl RefUnwindSafe for GCConfig
impl Send for GCConfig
impl Sync for GCConfig
impl Unpin for GCConfig
impl UnsafeUnpin for GCConfig
impl UnwindSafe for GCConfig
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