pub struct BuildSummary {
pub duration: Duration,
pub results: Vec<BuildResult>,
pub scan_failed: Vec<ScanFailure>,
}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!("Up-to-date: {}", summary.up_to_date_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.
scan_failed: Vec<ScanFailure>Packages that failed to scan (bmake pbulk-index failed).
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 (direct build failures only).
Sourcepub fn up_to_date_count(&self) -> usize
pub fn up_to_date_count(&self) -> usize
Count of up-to-date packages (already have binary package).
Sourcepub fn prefailed_count(&self) -> usize
pub fn prefailed_count(&self) -> usize
Count of pre-failed packages (PKG_SKIP_REASON/PKG_FAIL_REASON).
Sourcepub fn indirect_failed_count(&self) -> usize
pub fn indirect_failed_count(&self) -> usize
Count of indirect failed packages (depend on Failed).
Sourcepub fn indirect_prefailed_count(&self) -> usize
pub fn indirect_prefailed_count(&self) -> usize
Count of indirect pre-failed packages (depend on PreFailed).
Sourcepub fn scan_failed_count(&self) -> usize
pub fn scan_failed_count(&self) -> usize
Count of packages that failed to scan.
Sourcepub fn failed(&self) -> Vec<&BuildResult>
pub fn failed(&self) -> Vec<&BuildResult>
Get all failed results (direct build failures only).
Sourcepub fn succeeded(&self) -> Vec<&BuildResult>
pub fn succeeded(&self) -> Vec<&BuildResult>
Get all successful results.
Sourcepub fn up_to_date(&self) -> Vec<&BuildResult>
pub fn up_to_date(&self) -> Vec<&BuildResult>
Get all up-to-date results.
Sourcepub fn prefailed(&self) -> Vec<&BuildResult>
pub fn prefailed(&self) -> Vec<&BuildResult>
Get all pre-failed results.
Sourcepub fn indirect_failed(&self) -> Vec<&BuildResult>
pub fn indirect_failed(&self) -> Vec<&BuildResult>
Get all indirect failed results.
Sourcepub fn indirect_prefailed(&self) -> Vec<&BuildResult>
pub fn indirect_prefailed(&self) -> Vec<&BuildResult>
Get all indirect pre-failed results.
Trait Implementations§
Source§impl Clone for BuildSummary
impl Clone for BuildSummary
Source§fn clone(&self) -> BuildSummary
fn clone(&self) -> BuildSummary
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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
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>
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