pub struct StepSpec {Show 14 fields
pub argv: Vec<String>,
pub stdin: Option<String>,
pub env: BTreeMap<String, String>,
pub cwd: AbsolutePath,
pub capture: CaptureMode,
pub stream: bool,
pub always: bool,
pub untraced: bool,
pub network: bool,
pub ignore: Vec<String>,
pub track: Vec<String>,
pub timestamps: bool,
pub machine: Vec<String>,
pub expect: Option<Vec<i32>>,
}Expand description
One step, as a run() call in a task program specifies it.
Fields§
§argv: Vec<String>The argument vector: the program, then its arguments, each string exactly as
written, after run() expanded the lists and tuples among its arguments.
stdin: Option<String>The text for standard input, or None to connect /dev/null.
env: BTreeMap<String, String>The exact environment of the command: the task environment with the
per-run env applied.
cwd: AbsolutePathThe absolute working directory: the task directory, or cwd resolved
against it.
capture: CaptureModeHow standard output and standard error are captured.
stream: boolWhether output is also echoed live to the terminal.
always: boolWhether the command runs on every build, even when cached.
untraced: boolRun without observing dependencies; implies one uncached execution per build.
network: boolWhether socket activity is expected and needs no warning.
ignore: Vec<String>The user exceptions: patterns of paths not recorded as dependencies.
track: Vec<String>The /proc and /sys files whose content counts as an input.
timestamps: boolWhether a different modification or change time of a file or directory that the step read, ran, listed, or checked is a change, even when the content is the same.
machine: Vec<String>The names of the parts of the machine state that count as an input of the
step, sorted and without repeats; each is a MachinePart name.
expect: Option<Vec<i32>>The acceptable exit codes, or None when the exit status never fails the
task.
Implementations§
Trait Implementations§
impl Eq for StepSpec
impl StructuralPartialEq for StepSpec
Auto Trait Implementations§
impl Freeze for StepSpec
impl RefUnwindSafe for StepSpec
impl Send for StepSpec
impl Sync for StepSpec
impl Unpin for StepSpec
impl UnsafeUnpin for StepSpec
impl UnwindSafe for StepSpec
Blanket Implementations§
impl<T> AsTypeStaticRegistered for T
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.§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
§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
impl<T> HasTyVTable for Twhere
T: ?Sized,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more