pub struct GcPolicy {
pub max_bytes: u64,
pub min_age: Duration,
}Expand description
When to evict and how much to keep. Defaults: 20 GiB ceiling, one-hour minimum age.
Fields§
§max_bytes: u64Target ceiling for total CAS bytes.
min_age: DurationBlobs younger than this are never evicted (avoids racing an in-flight run that just wrote them).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GcPolicy
impl RefUnwindSafe for GcPolicy
impl Send for GcPolicy
impl Sync for GcPolicy
impl Unpin for GcPolicy
impl UnsafeUnpin for GcPolicy
impl UnwindSafe for GcPolicy
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