pub struct GcBudget {
pub keep_generations: usize,
pub generations_permille: u32,
pub keep_emergency: usize,
pub retain_all: bool,
}Expand description
Owner settings (services.planarian.gc), not manifest options.
Fields§
§keep_generations: usizeGenerations to keep at most (§12b default 10).
generations_permille: u32Generations may use at most this share of the Nix store’s filesystem, in tenths of a percent (§12b default 20% = 200).
keep_emergency: usizeGenerations to keep at most in an emergency (the store or journal filesystem is nearly full).
retain_all: boolservices.planarian.gc.retainAllGenerations: never collect a
generation, even in an emergency (a full history, or generations kept
for export). Other store garbage is still collected; a space bound the
generations exceed is reported, never enforced.
Implementations§
Source§impl GcBudget
impl GcBudget
Sourcepub fn protected(
&self,
on_disk: &[GenerationId],
protect: &[GenerationId],
) -> Vec<GenerationId>
pub fn protected( &self, on_disk: &[GenerationId], protect: &[GenerationId], ) -> Vec<GenerationId>
The generations plan may not collect: the I3 set, and with
retain_all every generation on disk.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for GcBudget
impl<'de> Deserialize<'de> for GcBudget
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for GcBudget
impl Eq for GcBudget
impl StructuralPartialEq for GcBudget
Auto Trait Implementations§
impl Freeze for GcBudget
impl RefUnwindSafe for GcBudget
impl Send for GcBudget
impl Sync for GcBudget
impl Unpin for GcBudget
impl UnsafeUnpin for GcBudget
impl UnwindSafe for GcBudget
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