pub enum ArtifactCacheBatchError<E> {
Cache {
failed_index: usize,
completed: Vec<ArtifactCacheOutcome>,
total: Duration,
source: Box<ArtifactCacheError>,
},
Build {
failed_index: usize,
completed: Vec<ArtifactCacheOutcome>,
total: Duration,
source: Box<E>,
cleanup_error: Option<Box<ArtifactCacheError>>,
},
}Expand description
Failure from a sequential independent artifact transaction batch.
Variants§
Cache
Cache preparation or commit failed.
Fields
§
completed: Vec<ArtifactCacheOutcome>Successful outcomes completed before the failure.
§
source: Box<ArtifactCacheError>Cache preparation or commit failure.
Build
The caller’s population callback failed.
Fields
§
completed: Vec<ArtifactCacheOutcome>Successful outcomes completed before the failure.
§
cleanup_error: Option<Box<ArtifactCacheError>>Failure from synchronously aborting the active transaction.
Implementations§
Source§impl<E> ArtifactCacheBatchError<E>
impl<E> ArtifactCacheBatchError<E>
Sourcepub const fn failed_index(&self) -> usize
pub const fn failed_index(&self) -> usize
Zero-based index of the failed independent specification.
Sourcepub fn completed(&self) -> &[ArtifactCacheOutcome]
pub fn completed(&self) -> &[ArtifactCacheOutcome]
Successful outcomes completed before the failure.
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 ArtifactCacheBatchError<E>
impl<E: Debug> Debug for ArtifactCacheBatchError<E>
Source§impl<E: Display> Display for ArtifactCacheBatchError<E>
impl<E: Display> Display for ArtifactCacheBatchError<E>
Source§impl<E> Error for ArtifactCacheBatchError<E>where
E: Error + 'static,
impl<E> Error for ArtifactCacheBatchError<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 ArtifactCacheBatchError<E>
impl<E> !UnwindSafe for ArtifactCacheBatchError<E>
impl<E> Freeze for ArtifactCacheBatchError<E>
impl<E> Send for ArtifactCacheBatchError<E>where
E: Send,
impl<E> Sync for ArtifactCacheBatchError<E>where
E: Sync,
impl<E> Unpin for ArtifactCacheBatchError<E>
impl<E> UnsafeUnpin for ArtifactCacheBatchError<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