pub struct MaintenanceBudget {
pub cap_bytes: Option<u64>,
pub min_free_bytes: Option<u64>,
pub gc_every: u64,
pub keep_days: i64,
}Expand description
Env-driven maintenance settings shared by doover gc and the post-hook
trigger. Parsing is fail-safe (garbage → default); an explicit 0 is the
documented opt-out for each knob.
Fields§
§cap_bytes: Option<u64>DOOVER_MAX_STORE_BYTES (default 5 GiB; 0 = uncapped).
min_free_bytes: Option<u64>DOOVER_MIN_FREE_BYTES (default 1 GiB; 0 = no floor). In the automatic
path a breach triggers a retention+cap pass and a loud warning — it
never drives eviction (that requires an explicit doover gc).
gc_every: u64DOOVER_GC_EVERY: run gc from the post hook every N completed actions (default 50; 0 = NO automatic gc at all, including the free-space trigger — breaches then only warn).
keep_days: i64DOOVER_KEEP_DAYS (default 7; 0 = retention opt-out, keep forever) — the retention window the trigger uses.
Implementations§
Trait Implementations§
Source§impl Clone for MaintenanceBudget
impl Clone for MaintenanceBudget
Source§fn clone(&self) -> MaintenanceBudget
fn clone(&self) -> MaintenanceBudget
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for MaintenanceBudget
Auto Trait Implementations§
impl Freeze for MaintenanceBudget
impl RefUnwindSafe for MaintenanceBudget
impl Send for MaintenanceBudget
impl Sync for MaintenanceBudget
impl Unpin for MaintenanceBudget
impl UnsafeUnpin for MaintenanceBudget
impl UnwindSafe for MaintenanceBudget
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