pub struct Options<'a> {
pub unit: Option<&'a str>,
pub stale: bool,
pub rustc_key: Option<&'a str>,
pub husks: bool,
pub older_than: Option<&'a str>,
pub work_dirs: bool,
pub work_dir: Option<&'a str>,
pub work: Option<&'a str>,
pub crate_name: Option<&'a str>,
pub tier: Tier,
pub force: bool,
pub delete: bool,
}Expand description
What the user asked to evict.
Fields§
§unit: Option<&'a str>Unit query: dir name, dir hash fragment, or package name.
stale: boolEvery unit on a stale toolchain generation (the bulk selector).
rustc_key: Option<&'a str>Exact (or prefix) rustc fingerprint identity.
husks: boolUnits whose artifacts are already missing (fingerprint husks).
older_than: Option<&'a str>Units untouched for longer than this (e.g. 30d).
work_dirs: boolThe per-job working-dir tier: collect work/<job-id>/ views
(its own selector; default age 7 days).
work_dir: Option<&'a str>Remove ONE job dir now (name, work/<id>, or a path under work/):
explicit choices bypass the GC age window; a locked dir is refused.
work: Option<&'a str>Surgical view operation: unlink units from ONE view only (build,
a work/<id> job dir, or a path). Never touches the vault.
crate_name: Option<&'a str>Package selector for --work (dashes and underscores both match).
tier: TierWhich tier an eviction touches: the store, the views, or both.
force: boolAlso allow evicting current-generation units.
delete: boolActually delete (without this it is a dry run).