pub enum Reason {
Show 19 variants
NeverRun,
ProgramChanged {
block: bool,
modules: Vec<ModuleChange>,
},
ArgumentsChanged {
old: Vec<String>,
new: Vec<String>,
},
EnvironmentChanged {
changes: Vec<EnvChange>,
},
WorkingDirectoryChanged {
old: PathBuf,
new: PathBuf,
},
StdinChanged {
old: Option<String>,
new: Option<String>,
},
CaptureChanged {
old: Capture,
new: Capture,
},
IgnoreChanged {
old: Vec<String>,
new: Vec<String>,
},
TrackChanged {
old: Vec<String>,
new: Vec<String>,
},
TimestampsChanged {
old: bool,
new: bool,
},
MachineNamesChanged {
old: Vec<String>,
new: Vec<String>,
},
InputsChanged {
inputs: Vec<ChangedInput>,
},
MachineChanged {
changes: Vec<MachineChange>,
},
Always,
NotCached {
why: NotCachedReason,
inputs: Vec<ChangedInput>,
},
TaskCacheNever,
RunNoCache,
Untraced,
TracingChanged {
old: bool,
new: bool,
},
}Expand description
One reason a step ran.
Variants§
NeverRun
There is no record for this step, and no earlier specification at its position explains why.
ProgramChanged
The task program changed.
Fields
modules: Vec<ModuleChange>Every loaded module that changed, was added, or was removed, sorted by path. With neither a block nor a module, which part changed is unknown.
ArgumentsChanged
The arguments changed.
EnvironmentChanged
The environment changed.
WorkingDirectoryChanged
The working directory changed.
StdinChanged
The stdin text changed.
Fields
CaptureChanged
The capture mode changed.
IgnoreChanged
The ignore patterns changed.
TrackChanged
The track patterns changed.
TimestampsChanged
The timestamps option changed.
MachineNamesChanged
The machine names changed.
InputsChanged
Recorded inputs changed.
Fields
inputs: Vec<ChangedInput>Every changed input, sorted by path.
MachineChanged
Values of the machine state that the step names changed.
Fields
changes: Vec<MachineChange>Each changed value, old and new, in the order of the step’s names.
Always
The command is marked always.
NotCached
The previous run could not be cached.
Fields
why: NotCachedReasonWhy it could not be cached.
inputs: Vec<ChangedInput>Every input that changed since that run, sorted by path.
TaskCacheNever
The command’s task is marked cache=never, so the command runs as if it were
marked always.
RunNoCache
kizz run --no-cache was given, so the command ran although its record may
have been a cache hit. Unlike Reason::Always and
Reason::TaskCacheNever, it does not make the step one that runs on every
build.
Untraced
Dependency tracing is disabled; the command runs once per build.
TracingChanged
The dependency tracing mode changed.
Implementations§
Trait Implementations§
impl Eq for Reason
impl StructuralPartialEq for Reason
Auto Trait Implementations§
impl Freeze for Reason
impl RefUnwindSafe for Reason
impl Send for Reason
impl Sync for Reason
impl Unpin for Reason
impl UnsafeUnpin for Reason
impl UnwindSafe for Reason
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.