pub enum StorageError {
Show 24 variants
Storage(String),
Backend {
kind: StorageBackendFailure,
operation: String,
source: Box<dyn Error + Sync + Send>,
},
CleanupFailed {
operation: Box<StorageError>,
cleanup: Box<StorageError>,
},
UnresolvedOutcome {
operation: Box<StorageError>,
settlement: Box<StorageError>,
},
Configuration(String),
Parse(String),
Json(Error),
Key(KeyError),
ProviderProbeJournal(ProviderProbeJournalError),
StoreProtocol(Box<StoreProtocolError>),
BlobLocator(BlobLocatorError),
Blocking {
operation: &'static str,
source: BlockingTaskError,
},
Url(ParseError),
NotFound(String),
AlreadyExists(String),
SlotCollision(String),
PreparedObjectMismatch(String),
Decryption {
context: String,
source: EncryptionError,
},
InvalidContent(String),
LocalFilesystem(FileError),
Io(Error),
CommitNewFile(CommitNewFileError),
UnsafeBlobPath(PathTokenError),
RotationPending(RotationPending),
}Variants§
Storage(String)
Backend
CleanupFailed
UnresolvedOutcome
Configuration(String)
Parse(String)
Json(Error)
Key(KeyError)
ProviderProbeJournal(ProviderProbeJournalError)
StoreProtocol(Box<StoreProtocolError>)
BlobLocator(BlobLocatorError)
Blocking
Url(ParseError)
NotFound(String)
AlreadyExists(String)
SlotCollision(String)
PreparedObjectMismatch(String)
A retained prepared object opened to bytes other than its durable journal records.
Decryption
InvalidContent(String)
LocalFilesystem(FileError)
Io(Error)
CommitNewFile(CommitNewFileError)
UnsafeBlobPath(PathTokenError)
RotationPending(RotationPending)
This device has not adopted a store-key rotation the cloud already
committed; see RotationPending.
Implementations§
Source§impl StorageError
impl StorageError
pub fn backend( kind: StorageBackendFailure, operation: impl Into<String>, source: impl Error + Send + Sync + 'static, ) -> StorageError
pub fn is_transport(&self) -> bool
pub fn backend_failure(&self) -> Option<StorageBackendFailure>
pub fn cleanup_causes(&self) -> Option<(&StorageError, &StorageError)>
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
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<BlobLocatorError> for StorageError
impl From<BlobLocatorError> for StorageError
Source§fn from(source: BlobLocatorError) -> StorageError
fn from(source: BlobLocatorError) -> StorageError
Converts to this type from the input type.
Source§impl From<CloudHomeError> for StorageError
impl From<CloudHomeError> for StorageError
Source§fn from(e: CloudHomeError) -> StorageError
fn from(e: CloudHomeError) -> StorageError
Converts to this type from the input type.
Source§impl From<CommitNewFileError> for StorageError
impl From<CommitNewFileError> for StorageError
Source§fn from(source: CommitNewFileError) -> StorageError
fn from(source: CommitNewFileError) -> StorageError
Converts to this type from the input type.
Source§impl From<Error> for StorageError
impl From<Error> for StorageError
Source§fn from(source: Error) -> StorageError
fn from(source: Error) -> StorageError
Converts to this type from the input type.
Source§impl From<Error> for StorageError
impl From<Error> for StorageError
Source§fn from(source: Error) -> StorageError
fn from(source: Error) -> StorageError
Converts to this type from the input type.
Source§impl From<FileError> for StorageError
impl From<FileError> for StorageError
Source§fn from(source: FileError) -> StorageError
fn from(source: FileError) -> StorageError
Converts to this type from the input type.
Source§impl From<KeyError> for StorageError
impl From<KeyError> for StorageError
Source§fn from(source: KeyError) -> StorageError
fn from(source: KeyError) -> StorageError
Converts to this type from the input type.
Source§impl From<ParseError> for StorageError
impl From<ParseError> for StorageError
Source§fn from(source: ParseError) -> StorageError
fn from(source: ParseError) -> StorageError
Converts to this type from the input type.
Source§impl From<PathTokenError> for StorageError
impl From<PathTokenError> for StorageError
Source§fn from(source: PathTokenError) -> StorageError
fn from(source: PathTokenError) -> StorageError
Converts to this type from the input type.
Source§impl From<PlaintextChunkError> for StorageError
impl From<PlaintextChunkError> for StorageError
Source§fn from(error: PlaintextChunkError) -> StorageError
fn from(error: PlaintextChunkError) -> StorageError
Converts to this type from the input type.
Source§impl From<ProviderProbeJournalError> for StorageError
impl From<ProviderProbeJournalError> for StorageError
Source§fn from(source: ProviderProbeJournalError) -> StorageError
fn from(source: ProviderProbeJournalError) -> StorageError
Converts to this type from the input type.
Source§impl From<RotationPending> for StorageError
impl From<RotationPending> for StorageError
Source§fn from(source: RotationPending) -> StorageError
fn from(source: RotationPending) -> StorageError
Converts to this type from the input type.
Source§impl From<StorageError> for BlobCacheError
impl From<StorageError> for BlobCacheError
Source§fn from(e: StorageError) -> BlobCacheError
fn from(e: StorageError) -> BlobCacheError
Converts to this type from the input type.
Source§impl From<StorageError> for BootstrapError
impl From<StorageError> for BootstrapError
Source§fn from(source: StorageError) -> BootstrapError
fn from(source: StorageError) -> BootstrapError
Converts to this type from the input type.
Source§impl From<StorageError> for CloudHomeError
Slot and reference validation lives on the protocol values and reports
coven_protocol::objects::StorageError; provider code folds it into its
own configuration vocabulary.
impl From<StorageError> for CloudHomeError
Slot and reference validation lives on the protocol values and reports
coven_protocol::objects::StorageError; provider code folds it into its
own configuration vocabulary.
Source§fn from(error: StorageError) -> CloudHomeError
fn from(error: StorageError) -> CloudHomeError
Converts to this type from the input type.
Source§impl From<StorageError> for DbError
impl From<StorageError> for DbError
Source§fn from(source: StorageError) -> DbError
fn from(source: StorageError) -> DbError
Converts to this type from the input type.
Source§impl From<StorageError> for DeviceJoinError
impl From<StorageError> for DeviceJoinError
Source§fn from(source: StorageError) -> DeviceJoinError
fn from(source: StorageError) -> DeviceJoinError
Converts to this type from the input type.
Source§impl From<StorageError> for DeviceJoinTransportError
impl From<StorageError> for DeviceJoinTransportError
Source§fn from(source: StorageError) -> DeviceJoinTransportError
fn from(source: StorageError) -> DeviceJoinTransportError
Converts to this type from the input type.
Source§impl From<StorageError> for UploadFailureCause
impl From<StorageError> for UploadFailureCause
Source§fn from(source: StorageError) -> UploadFailureCause
fn from(source: StorageError) -> UploadFailureCause
Converts to this type from the input type.
Source§impl From<StoreProtocolError> for StorageError
impl From<StoreProtocolError> for StorageError
Source§fn from(source: StoreProtocolError) -> StorageError
fn from(source: StoreProtocolError) -> StorageError
Converts to this type from the input type.
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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 moreCreates a shared type from an unshared type.