pub struct ContextGcPolicy {
pub target_tokens_ratio: f64,
pub auto_compact_ratio: f64,
}Expand description
Garbage collection and pressure policy ratios.
Fields§
§target_tokens_ratio: f64§auto_compact_ratio: f64Trait Implementations§
Source§impl Clone for ContextGcPolicy
impl Clone for ContextGcPolicy
Source§fn clone(&self) -> ContextGcPolicy
fn clone(&self) -> ContextGcPolicy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ContextGcPolicy
impl Debug for ContextGcPolicy
Source§impl<'de> Deserialize<'de> for ContextGcPolicy
impl<'de> Deserialize<'de> for ContextGcPolicy
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 ContextGcPolicy
impl RefUnwindSafe for ContextGcPolicy
impl Send for ContextGcPolicy
impl Sync for ContextGcPolicy
impl Unpin for ContextGcPolicy
impl UnsafeUnpin for ContextGcPolicy
impl UnwindSafe for ContextGcPolicy
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