Skip to main content

Reason

Enum Reason 

Source
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

§block: bool

Whether the block changed.

§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.

Fields

§old: Vec<String>

The old argument vector.

§new: Vec<String>

The new argument vector.

§

EnvironmentChanged

The environment changed.

Fields

§changes: Vec<EnvChange>

Every variable added, removed, or changed, sorted by name.

§

WorkingDirectoryChanged

The working directory changed.

Fields

§old: PathBuf

The old working directory.

§new: PathBuf

The new working directory.

§

StdinChanged

The stdin text changed.

Fields

§old: Option<String>

The old text, or None for /dev/null.

§new: Option<String>

The new text, or None for /dev/null.

§

CaptureChanged

The capture mode changed.

Fields

§old: Capture

The old mode.

§new: Capture

The new mode.

§

IgnoreChanged

The ignore patterns changed.

Fields

§old: Vec<String>

The old patterns.

§new: Vec<String>

The new patterns.

§

TrackChanged

The track patterns changed.

Fields

§old: Vec<String>

The old patterns.

§new: Vec<String>

The new patterns.

§

TimestampsChanged

The timestamps option changed.

Fields

§old: bool

The old value.

§new: bool

The new value.

§

MachineNamesChanged

The machine names changed.

Fields

§old: Vec<String>

The old names.

§new: Vec<String>

The new names.

§

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: NotCachedReason

Why 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.

Fields

§old: bool

The previous value of the untraced option.

§new: bool

The current value of the untraced option.

Implementations§

Source§

impl Reason

Source

pub fn inputs(&self) -> &[ChangedInput]

The changed inputs of this reason, if it has any.

Trait Implementations§

Source§

impl Clone for Reason

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Reason

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'bytes, Ctx> Decode<'bytes, Ctx> for Reason

Source§

fn decode( __d777: &mut Decoder<'bytes>, __ctx777: &mut Ctx, ) -> Result<Reason, Error>

Decode a value using the given Decoder. Read more
§

fn nil() -> Option<Self>

If possible, return a nil value of Self. Read more
Source§

impl<Ctx> Encode<Ctx> for Reason

Source§

fn encode<__W777>( &self, __e777: &mut Encoder<__W777>, __ctx777: &mut Ctx, ) -> Result<(), Error<__W777::Error>>
where __W777: Write,

Encode a value of this type using the given Encoder. Read more
§

fn is_nil(&self) -> bool

Is this value of Self a nil value? Read more
Source§

impl Eq for Reason

Source§

impl PartialEq for Reason

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for Reason

Auto Trait Implementations§

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
§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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.

§

impl<T> Pointable for T

§

const ALIGN: usize

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more