pub struct BuildSummary {
pub duration: Duration,
pub results: Vec<BuildResult>,
}Expand description
Summary of an entire build run.
Contains timing information and results for all packages.
§Example
println!("Succeeded: {}", summary.success_count());
println!("Failed: {}", summary.failed_count());
println!("Skipped: {}", summary.skipped_count());
println!("Duration: {:?}", summary.duration);
for result in summary.failed() {
println!(" {} failed", result.pkgname.pkgname());
}Fields§
§duration: DurationTotal duration of the build run.
results: Vec<BuildResult>Results for each package.
Implementations§
Source§impl BuildSummary
impl BuildSummary
Sourcepub fn success_count(&self) -> usize
pub fn success_count(&self) -> usize
Count of successfully built packages.
Sourcepub fn failed_count(&self) -> usize
pub fn failed_count(&self) -> usize
Count of failed packages.
Sourcepub fn skipped_count(&self) -> usize
pub fn skipped_count(&self) -> usize
Count of skipped packages.
Sourcepub fn failed(&self) -> Vec<&BuildResult>
pub fn failed(&self) -> Vec<&BuildResult>
Get all failed results.
Sourcepub fn succeeded(&self) -> Vec<&BuildResult>
pub fn succeeded(&self) -> Vec<&BuildResult>
Get all successful results.
Sourcepub fn skipped(&self) -> Vec<&BuildResult>
pub fn skipped(&self) -> Vec<&BuildResult>
Get all skipped results.
Trait Implementations§
Source§impl Clone for BuildSummary
impl Clone for BuildSummary
Source§fn clone(&self) -> BuildSummary
fn clone(&self) -> BuildSummary
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for BuildSummary
impl RefUnwindSafe for BuildSummary
impl Send for BuildSummary
impl Sync for BuildSummary
impl Unpin for BuildSummary
impl UnwindSafe for BuildSummary
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> 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>
Converts
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>
Converts
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