pub enum StorageError {
NotFound {
digest: String,
},
RunNotFound {
run_id: String,
},
InvalidRunState {
run_id: String,
status: String,
expected: String,
},
ReleaseNotFound {
name: String,
},
NoPreviousRelease {
name: String,
},
InvalidDigest {
digest: String,
},
IntegrityError {
expected: String,
actual: String,
},
Backend(String),
Serialization(String),
}Expand description
Errors for the storage trait abstractions (CasStore, RunLedger, ReleaseRegistry)
Variants§
NotFound
Content not found in CAS
RunNotFound
Run not found in ledger
InvalidRunState
Run is not in a valid state for the requested operation
ReleaseNotFound
Release not found in registry
NoPreviousRelease
No previous release to roll back to
InvalidDigest
Invalid digest string (not valid 64-char hex)
IntegrityError
Data integrity violation
Backend(String)
Backend I/O error
Serialization(String)
Serialization/deserialization error
Trait Implementations§
Source§impl Debug for StorageError
impl Debug for StorageError
Source§impl Display for StorageError
impl Display for StorageError
Source§impl Error for StorageError
impl Error for StorageError
1.30.0 · 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 Freeze for StorageError
impl RefUnwindSafe for StorageError
impl Send for StorageError
impl Sync for StorageError
impl Unpin for StorageError
impl UnsafeUnpin for StorageError
impl UnwindSafe for StorageError
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more