Skip to main content

Options

Struct Options 

Source
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: bool

Every unit on a stale toolchain generation (the bulk selector).

§rustc_key: Option<&'a str>

Exact (or prefix) rustc fingerprint identity.

§husks: bool

Units whose artifacts are already missing (fingerprint husks).

§older_than: Option<&'a str>

Units untouched for longer than this (e.g. 30d).

§work_dirs: bool

The 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: Tier

Which tier an eviction touches: the store, the views, or both.

§force: bool

Also allow evicting current-generation units.

§delete: bool

Actually delete (without this it is a dry run).

Auto Trait Implementations§

§

impl<'a> Freeze for Options<'a>

§

impl<'a> RefUnwindSafe for Options<'a>

§

impl<'a> Send for Options<'a>

§

impl<'a> Sync for Options<'a>

§

impl<'a> Unpin for Options<'a>

§

impl<'a> UnsafeUnpin for Options<'a>

§

impl<'a> UnwindSafe for Options<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.