pub struct GCConfig {
pub min_epochs_to_keep: u64,
pub gc_trigger_threshold: usize,
pub max_versions_per_cycle: usize,
}Expand description
GC configuration
Fields§
§min_epochs_to_keep: u64Minimum number of epochs to keep (grace period)
gc_trigger_threshold: usizeTrigger GC after this many new versions
max_versions_per_cycle: usizeMaximum versions to scan per GC cycle
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 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