pub struct BuildReport {
pub order: Vec<TaskId>,
pub passes: Vec<Pass>,
pub outcome: BuildOutcome,
}Expand description
What a build did.
Fields§
§order: Vec<TaskId>The selected tasks, in the order every pass tried them.
passes: Vec<Pass>Every pass, in order, the one that ran nothing included.
outcome: BuildOutcomeHow the build ended.
Implementations§
Source§impl BuildReport
impl BuildReport
Sourcepub fn settled_in(&self) -> usize
pub fn settled_in(&self) -> usize
The number of passes the build took to settle: the last pass that did work, by running a command or by a task program changing a file, or 1 when no pass did. The final pass, which did no work, only confirms that nothing changed, so it adds to the count only when it is the only pass. A build that did not settle or was interrupted reports every pass it tried.
Sourcepub fn unchecked(&self) -> Vec<UncheckedStep>
pub fn unchecked(&self) -> Vec<UncheckedStep>
The unchecked steps that stand when the build settles, which warn (the final-state rule, “Exit codes and failure”): those of each task’s latest run in the build. Every pass tries every selected task, so in a settled build these are the runs of the final pass, in the order it ran the tasks and each task its steps, each step once. A task that ran again in a later pass replaced its earlier results, so an unchecked step of an earlier pass stands only when the final pass still has it. A build that did not settle or was interrupted has no settled state, so it has none.
Trait Implementations§
Source§impl Clone for BuildReport
impl Clone for BuildReport
Source§impl Debug for BuildReport
impl Debug for BuildReport
impl Eq for BuildReport
Source§impl PartialEq for BuildReport
impl PartialEq for BuildReport
impl StructuralPartialEq for BuildReport
Auto Trait Implementations§
impl Freeze for BuildReport
impl RefUnwindSafe for BuildReport
impl Send for BuildReport
impl Sync for BuildReport
impl Unpin for BuildReport
impl UnsafeUnpin for BuildReport
impl UnwindSafe for BuildReport
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