pub enum BlobStorageError {
NotFound(String),
AlreadyExists(String),
NotSupported(String),
BackendMisconfigured(String),
InvalidInput(String),
Storage {
message: String,
source: Option<Box<dyn Error + Send + Sync + 'static>>,
},
Encryption {
message: String,
source: Option<Box<dyn Error + Send + Sync + 'static>>,
},
PermissionDenied(String),
Batch(BatchError),
}Expand description
Blob storage error.
Variants§
NotFound(String)
The requested blob was not found.
AlreadyExists(String)
A blob with this key already exists.
NotSupported(String)
The operation is not supported by this backend.
BackendMisconfigured(String)
The backend is misconfigured — for example, the S3 bucket does not exist, or the FS root directory has been deleted.
This is distinct from Storage errors: it indicates
a backend configuration problem, not a transient storage failure.
InvalidInput(String)
The provided input is invalid (empty key, path traversal, etc.).
Storage
Backend storage error. The inner String provides context;
the optional source carries the underlying cause.
Encryption
Encryption-layer error.
PermissionDenied(String)
The caller does not have permission to perform this operation.
Batch(BatchError)
Batch operation partially failed. Contains details about which keys succeeded and which failed.
Trait Implementations§
Source§impl Debug for BlobStorageError
impl Debug for BlobStorageError
Source§impl Display for BlobStorageError
impl Display for BlobStorageError
Source§impl Error for BlobStorageError
impl Error for BlobStorageError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl From<&str> for BlobStorageError
impl From<&str> for BlobStorageError
Source§impl From<BatchError> for BlobStorageError
impl From<BatchError> for BlobStorageError
Source§fn from(source: BatchError) -> Self
fn from(source: BatchError) -> Self
Source§impl From<EncryptionError> for BlobStorageError
impl From<EncryptionError> for BlobStorageError
Source§fn from(e: EncryptionError) -> Self
fn from(e: EncryptionError) -> Self
Source§impl From<Error> for BlobStorageError
impl From<Error> for BlobStorageError
Auto Trait Implementations§
impl !RefUnwindSafe for BlobStorageError
impl !UnwindSafe for BlobStorageError
impl Freeze for BlobStorageError
impl Send for BlobStorageError
impl Sync for BlobStorageError
impl Unpin for BlobStorageError
impl UnsafeUnpin for BlobStorageError
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
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>
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>
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