pub enum ArtifactStoreError {
Show 16 variants
Invalid(DomainError),
NotFound,
ArtifactTooLarge {
actual: u64,
max: u64,
},
ChunkTooLarge {
actual: usize,
max: u32,
},
UnexpectedOffset {
expected: u64,
actual: u64,
},
ChunkDigestMismatch,
Incomplete {
expected: u64,
actual: u64,
},
FinalDigestMismatch,
UploadCommitted,
UploadAborted,
IdempotencyConflict,
Tombstoned,
AccessDenied,
StorageUnavailable {
detail: String,
},
InvalidBackup,
InvalidCursor,
}Expand description
Stable failure vocabulary for artifact storage and transfer.
Variants§
Invalid(DomainError)
NotFound
ArtifactTooLarge
ChunkTooLarge
UnexpectedOffset
ChunkDigestMismatch
Incomplete
FinalDigestMismatch
UploadCommitted
UploadAborted
IdempotencyConflict
Tombstoned
AccessDenied
InvalidBackup
InvalidCursor
Implementations§
Source§impl ArtifactStoreError
impl ArtifactStoreError
Wrap an underlying failure that made storage unreachable: a connect timeout, a pool exhaustion, a decode error. The detail is what lets a CI failure be diagnosed without reproducing it locally.
Same as Self::unavailable where there is no underlying error to
carry, only the phase that failed.
Trait Implementations§
Source§impl Clone for ArtifactStoreError
impl Clone for ArtifactStoreError
Source§impl Debug for ArtifactStoreError
impl Debug for ArtifactStoreError
Source§impl Display for ArtifactStoreError
impl Display for ArtifactStoreError
Source§impl Error for ArtifactStoreError
impl Error for ArtifactStoreError
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()
Source§impl From<DomainError> for ArtifactStoreError
impl From<DomainError> for ArtifactStoreError
Source§fn from(source: DomainError) -> Self
fn from(source: DomainError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ArtifactStoreError
impl PartialEq for ArtifactStoreError
impl StructuralPartialEq for ArtifactStoreError
Auto Trait Implementations§
impl Freeze for ArtifactStoreError
impl RefUnwindSafe for ArtifactStoreError
impl Send for ArtifactStoreError
impl Sync for ArtifactStoreError
impl Unpin for ArtifactStoreError
impl UnsafeUnpin for ArtifactStoreError
impl UnwindSafe for ArtifactStoreError
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