pub enum ArtifactCacheBatchFailure<E> {
Cache {
phase: ArtifactCacheBatchFailurePhase,
source: Box<ArtifactCacheError>,
timings: ArtifactCacheBatchFailureTimings,
},
Build {
source: Box<E>,
cleanup_error: Option<Box<ArtifactCacheError>>,
timings: ArtifactCacheBatchFailureTimings,
},
}Expand description
Failure from one entry in a collect-all artifact transaction batch.
Variants§
Cache
Cache preparation or commit failed.
Fields
§
phase: ArtifactCacheBatchFailurePhaseFailed cache phase.
§
source: Box<ArtifactCacheError>Cache preparation or commit failure.
§
timings: ArtifactCacheBatchFailureTimingsPhase timings completed before the failure returned.
Build
The caller’s population callback failed.
Fields
§
cleanup_error: Option<Box<ArtifactCacheError>>Failure from synchronously aborting the active transaction.
§
timings: ArtifactCacheBatchFailureTimingsPreparation, callback, and explicit cleanup timings.
Implementations§
Source§impl<E> ArtifactCacheBatchFailure<E>
impl<E> ArtifactCacheBatchFailure<E>
Sourcepub const fn phase(&self) -> ArtifactCacheBatchFailurePhase
pub const fn phase(&self) -> ArtifactCacheBatchFailurePhase
Primary phase in which this entry failed.
Sourcepub const fn timings(&self) -> ArtifactCacheBatchFailureTimings
pub const fn timings(&self) -> ArtifactCacheBatchFailureTimings
Partial phase timings completed before the failure returned.
Sourcepub fn cleanup_error(&self) -> Option<&ArtifactCacheError>
pub fn cleanup_error(&self) -> Option<&ArtifactCacheError>
Cleanup failure after a caller population error, when one occurred.
Trait Implementations§
Source§impl<E: Debug> Debug for ArtifactCacheBatchFailure<E>
impl<E: Debug> Debug for ArtifactCacheBatchFailure<E>
Source§impl<E: Display> Display for ArtifactCacheBatchFailure<E>
impl<E: Display> Display for ArtifactCacheBatchFailure<E>
Source§impl<E> Error for ArtifactCacheBatchFailure<E>where
E: Error + 'static,
impl<E> Error for ArtifactCacheBatchFailure<E>where
E: Error + 'static,
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl<E> !RefUnwindSafe for ArtifactCacheBatchFailure<E>
impl<E> !UnwindSafe for ArtifactCacheBatchFailure<E>
impl<E> Freeze for ArtifactCacheBatchFailure<E>
impl<E> Send for ArtifactCacheBatchFailure<E>where
E: Send,
impl<E> Sync for ArtifactCacheBatchFailure<E>where
E: Sync,
impl<E> Unpin for ArtifactCacheBatchFailure<E>
impl<E> UnsafeUnpin for ArtifactCacheBatchFailure<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