pub struct GcOptions {
pub grace_secs: u64,
pub keep_last: Option<usize>,
pub keep_age_secs: Option<u64>,
}Expand description
Tuning for a garbage-collection pass: a safety grace window plus a retention policy. The defaults are conservative — no retention pressure (all history is kept) and no grace window — so callers opt into pruning aggressiveness.
Fields§
§grace_secs: u64Never collect a manifest first-seen within this many seconds, even if it is unreferenced. This protects an in-flight deploy whose blobs/manifest are uploaded but not yet activated (so not yet reachable from history).
keep_last: Option<usize>Keep at most this many most-recent history entries per site as
retention-protected (beyond current and aliases, which are always
kept). None keeps the entire history.
keep_age_secs: Option<u64>Also keep any history entry activated within this many seconds, even
beyond keep_last. None applies no age-based retention.
Trait Implementations§
impl Copy for GcOptions
impl Eq for GcOptions
impl StructuralPartialEq for GcOptions
Auto Trait Implementations§
impl Freeze for GcOptions
impl RefUnwindSafe for GcOptions
impl Send for GcOptions
impl Sync for GcOptions
impl Unpin for GcOptions
impl UnsafeUnpin for GcOptions
impl UnwindSafe for GcOptions
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.