pub enum StorageError {
Show 24 variants
Storage(String),
Backend {
kind: StorageBackendFailure,
operation: String,
source: Box<dyn Error + Send + Sync>,
},
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, ) -> Self
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) -> Self
fn from(source: BlobLocatorError) -> Self
Converts to this type from the input type.
Source§impl From<CommitNewFileError> for StorageError
impl From<CommitNewFileError> for StorageError
Source§fn from(source: CommitNewFileError) -> Self
fn from(source: CommitNewFileError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for StorageError
impl From<Error> for StorageError
Source§impl From<Error> for StorageError
impl From<Error> for StorageError
Source§impl From<FileError> for StorageError
impl From<FileError> for StorageError
Source§impl From<KeyError> for StorageError
impl From<KeyError> for StorageError
Source§impl From<ParseError> for StorageError
impl From<ParseError> for StorageError
Source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Converts to this type from the input type.
Source§impl From<PathTokenError> for StorageError
impl From<PathTokenError> for StorageError
Source§fn from(source: PathTokenError) -> Self
fn from(source: PathTokenError) -> Self
Converts to this type from the input type.
Source§impl From<ProviderProbeJournalError> for StorageError
impl From<ProviderProbeJournalError> for StorageError
Source§fn from(source: ProviderProbeJournalError) -> Self
fn from(source: ProviderProbeJournalError) -> Self
Converts to this type from the input type.
Source§impl From<RotationPending> for StorageError
impl From<RotationPending> for StorageError
Source§fn from(source: RotationPending) -> Self
fn from(source: RotationPending) -> Self
Converts to this type from the input type.
Source§impl From<StorageError> for DeviceJoinExchangeError
impl From<StorageError> for DeviceJoinExchangeError
Source§fn from(source: StorageError) -> Self
fn from(source: StorageError) -> Self
Converts to this type from the input type.
Source§impl From<StorageError> for PreparedCommitError
impl From<StorageError> for PreparedCommitError
Source§fn from(source: StorageError) -> Self
fn from(source: StorageError) -> Self
Converts to this type from the input type.
Source§impl From<StorageError> for ProviderProbeError
impl From<StorageError> for ProviderProbeError
Source§fn from(source: StorageError) -> Self
fn from(source: StorageError) -> Self
Converts to this type from the input type.
Source§impl From<StorageError> for RemoteObjectRecordError
impl From<StorageError> for RemoteObjectRecordError
Source§fn from(source: StorageError) -> Self
fn from(source: StorageError) -> Self
Converts to this type from the input type.
Source§impl From<StorageError> for StoreDeviceExclusionJournalError
impl From<StorageError> for StoreDeviceExclusionJournalError
Source§fn from(source: StorageError) -> Self
fn from(source: StorageError) -> Self
Converts to this type from the input type.
Source§impl From<StorageError> for StoreObjectError
impl From<StorageError> for StoreObjectError
Source§fn from(source: StorageError) -> Self
fn from(source: StorageError) -> Self
Converts to this type from the input type.
Source§impl From<StorageError> for StoreProtocolError
impl From<StorageError> for StoreProtocolError
Source§fn from(source: StorageError) -> Self
fn from(source: StorageError) -> Self
Converts to this type from the input type.
Source§impl From<StoreProtocolError> for StorageError
impl From<StoreProtocolError> for StorageError
Source§fn from(source: StoreProtocolError) -> Self
fn from(source: StoreProtocolError) -> Self
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