pub struct GcConfig {
pub preset: Option<GcPreset>,
pub young_size_mb: Option<usize>,
pub threads: Option<usize>,
pub collect_stats: bool,
}Expand description
GC configuration
Fields§
§preset: Option<GcPreset>GC preset
young_size_mb: Option<usize>Young generation size in MB
threads: Option<usize>Number of GC threads
collect_stats: boolEnable GC statistics collection
Trait Implementations§
Source§impl<'de> Deserialize<'de> for GcConfig
impl<'de> Deserialize<'de> for GcConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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