pub struct StepSpecRecord {Show 15 fields
pub program_hash: ContentHash,
pub cwd: PathBuf,
pub argv: Vec<String>,
pub env: BTreeMap<String, String>,
pub stdin: Option<String>,
pub capture: Capture,
pub stream: bool,
pub always: bool,
pub ignore: Vec<String>,
pub track: Vec<String>,
pub expect: Option<Vec<i32>>,
pub occurrence: u32,
pub timestamps: bool,
pub machine: Vec<String>,
pub untraced: bool,
}Expand description
The full specification of a step, as its run() call gave it, with the values
that place it in its task: the task program hash and the occurrence number.
Fields§
§program_hash: ContentHashThe hash of the task program: its block and every module it loads.
cwd: PathBufThe absolute working directory.
argv: Vec<String>The argument vector as run: the program, then its arguments, each string as written, after the expansion of any lists and tuples.
env: BTreeMap<String, String>The exact environment passed to the process, sorted by name.
stdin: Option<String>The text for standard input, or None for /dev/null.
capture: CaptureHow the output was captured.
stream: boolWhether output was also echoed live.
always: boolWhether the step runs on every build.
ignore: Vec<String>The ignore patterns, as written.
track: Vec<String>The track patterns, as written.
expect: Option<Vec<i32>>The acceptable exit codes, or None when the exit status never fails the
task.
occurrence: u32The number of identical commands earlier in the same task run.
timestamps: boolWhether a different modification or change time of a file or directory that the step read, ran, listed, or checked is a change.
machine: Vec<String>The names of the parts of the machine state that count as an input of the
step, as run(..., machine = [...]) gave them, sorted and without repeats.
untraced: boolWhether dependency tracing was explicitly disabled. Such steps are never cache hits.
Trait Implementations§
Source§impl Clone for StepSpecRecord
impl Clone for StepSpecRecord
Source§impl Debug for StepSpecRecord
impl Debug for StepSpecRecord
Source§impl<'bytes, Ctx> Decode<'bytes, Ctx> for StepSpecRecord
impl<'bytes, Ctx> Decode<'bytes, Ctx> for StepSpecRecord
Source§impl<Ctx> Encode<Ctx> for StepSpecRecord
impl<Ctx> Encode<Ctx> for StepSpecRecord
impl Eq for StepSpecRecord
Source§impl PartialEq for StepSpecRecord
impl PartialEq for StepSpecRecord
impl StructuralPartialEq for StepSpecRecord
Auto Trait Implementations§
impl Freeze for StepSpecRecord
impl RefUnwindSafe for StepSpecRecord
impl Send for StepSpecRecord
impl Sync for StepSpecRecord
impl Unpin for StepSpecRecord
impl UnsafeUnpin for StepSpecRecord
impl UnwindSafe for StepSpecRecord
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.