pub struct ArtifactCacheBatchReport<E> { /* private fields */ }Expand description
Ordered labeled entries from a collect-all artifact transaction batch.
Implementations§
Source§impl<E> ArtifactCacheBatchReport<E>
impl<E> ArtifactCacheBatchReport<E>
Sourcepub fn entries(&self) -> &[ArtifactCacheBatchEntry<E>]
pub fn entries(&self) -> &[ArtifactCacheBatchEntry<E>]
Ordered labeled entries.
Sourcepub fn into_entries(self) -> Vec<ArtifactCacheBatchEntry<E>>
pub fn into_entries(self) -> Vec<ArtifactCacheBatchEntry<E>>
Consume the report into its ordered labeled entries.
Sourcepub fn outcomes(&self) -> impl Iterator<Item = &ArtifactCacheBatchEntry<E>>
pub fn outcomes(&self) -> impl Iterator<Item = &ArtifactCacheBatchEntry<E>>
Successful entries, retaining the canonical identity, result and timings.
Sourcepub fn failures(&self) -> impl Iterator<Item = &ArtifactCacheBatchEntry<E>>
pub fn failures(&self) -> impl Iterator<Item = &ArtifactCacheBatchEntry<E>>
Failed entries; inspect failure() on each entry.
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>
impl<E> Sync for ArtifactCacheBatchReport<E>
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