pub struct GcOpts {
pub mode: GcMode,
pub force: bool,
pub grace_hours: Option<u64>,
}Expand description
Tunables for Gc::run. Field semantics mirror the CLI flags.
Fields§
§mode: GcModeOperating mode. The two-boolean mark_only/sweep_only
shape was prone to silently no-oping the conflicting
combination; the enum makes the three valid states the only
representable states.
force: boolforce mode for sweep: bypass grace window and the orphan
re-check. Operator-asserted safe.
grace_hours: Option<u64>Grace window in hours before a tombstone becomes eligible for
sweep. None falls back to [crate::packchain::gc::grace_hours_from_env]
which honours GIT_REMOTE_OBJECT_STORE_GC_GRACE_HOURS (defaulting
to gc::DEFAULT_GRACE_HOURS when unset).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GcOpts
impl RefUnwindSafe for GcOpts
impl Send for GcOpts
impl Sync for GcOpts
impl Unpin for GcOpts
impl UnsafeUnpin for GcOpts
impl UnwindSafe for GcOpts
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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 moreCreates a shared type from an unshared type.