pub enum AutoStrategy {
Disabled,
AlwaysRun,
Ceiling {
next_run: usize,
growth_factor: usize,
},
}Expand description
The strategy used for running the GC automatically.
Variants§
Disabled
Don’t run the GC when auto_collect is called.
AlwaysRun
Always run the GC when auto_collect is called.
Ceiling
Run the GC if its allocated_bytes exceeds next_run, and grow next_run to
allocated_bytes * growth_factor / 256 after collection.
Trait Implementations§
Source§impl Clone for AutoStrategy
impl Clone for AutoStrategy
Source§fn clone(&self) -> AutoStrategy
fn clone(&self) -> AutoStrategy
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 AutoStrategy
impl Debug for AutoStrategy
Source§impl PartialEq for AutoStrategy
impl PartialEq for AutoStrategy
impl Copy for AutoStrategy
impl Eq for AutoStrategy
impl StructuralPartialEq for AutoStrategy
Auto Trait Implementations§
impl Freeze for AutoStrategy
impl RefUnwindSafe for AutoStrategy
impl Send for AutoStrategy
impl Sync for AutoStrategy
impl Unpin for AutoStrategy
impl UnwindSafe for AutoStrategy
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