pub struct ArtifactCacheBatchReport<E> { /* private fields */ }Expand description
Ordered outcomes and failures from a collect-all artifact transaction batch.
Implementations§
Source§impl<E> ArtifactCacheBatchReport<E>
impl<E> ArtifactCacheBatchReport<E>
Sourcepub fn results(
&self,
) -> &[Result<ArtifactCacheOutcome, ArtifactCacheBatchFailure<E>>]
pub fn results( &self, ) -> &[Result<ArtifactCacheOutcome, ArtifactCacheBatchFailure<E>>]
Per-specification results in the supplied order.
Sourcepub fn into_results(
self,
) -> Vec<Result<ArtifactCacheOutcome, ArtifactCacheBatchFailure<E>>>
pub fn into_results( self, ) -> Vec<Result<ArtifactCacheOutcome, ArtifactCacheBatchFailure<E>>>
Consume the report and return its ordered per-specification results.
Sourcepub fn outcomes(&self) -> impl Iterator<Item = (usize, &ArtifactCacheOutcome)>
pub fn outcomes(&self) -> impl Iterator<Item = (usize, &ArtifactCacheOutcome)>
Successful outcomes with their specification indexes.
Sourcepub fn failures(
&self,
) -> impl Iterator<Item = (usize, &ArtifactCacheBatchFailure<E>)>
pub fn failures( &self, ) -> impl Iterator<Item = (usize, &ArtifactCacheBatchFailure<E>)>
Failures with their specification indexes.
Sourcepub const fn total(&self) -> Duration
pub const fn total(&self) -> Duration
Complete wall-clock time for the sequential collect-all batch.
Sourcepub fn is_success(&self) -> bool
pub fn is_success(&self) -> bool
Whether every specification completed successfully.
Sourcepub fn metrics(&self) -> ArtifactCacheBatchMetrics
pub fn metrics(&self) -> ArtifactCacheBatchMetrics
Aggregate outcome counters and successful-acquisition timings.
Trait Implementations§
Source§impl<E: Debug> Debug for ArtifactCacheBatchReport<E>
impl<E: Debug> Debug for ArtifactCacheBatchReport<E>
Auto Trait Implementations§
impl<E> !RefUnwindSafe for ArtifactCacheBatchReport<E>
impl<E> !UnwindSafe for ArtifactCacheBatchReport<E>
impl<E> Freeze for ArtifactCacheBatchReport<E>
impl<E> Send for ArtifactCacheBatchReport<E>where
E: Send,
impl<E> Sync for ArtifactCacheBatchReport<E>where
E: Sync,
impl<E> Unpin for ArtifactCacheBatchReport<E>
impl<E> UnsafeUnpin for ArtifactCacheBatchReport<E>
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