pub enum CloudError {
Show 17 variants
Io(IoError),
S3(S3Error),
Azure(AzureError),
Gcs(GcsError),
Http(HttpError),
Auth(AuthError),
Retry(RetryError),
Cache(CacheError),
InvalidUrl {
url: String,
},
UnsupportedProtocol {
protocol: String,
},
NotFound {
key: String,
},
PermissionDenied {
message: String,
},
Timeout {
message: String,
},
RateLimitExceeded {
message: String,
},
InvalidConfiguration {
message: String,
},
NotSupported {
operation: String,
},
Internal {
message: String,
},
}Expand description
Main error type for cloud storage operations
Variants§
Io(IoError)
I/O error
S3(S3Error)
AWS S3 error
Azure(AzureError)
Azure Blob Storage error
Gcs(GcsError)
Google Cloud Storage error
Http(HttpError)
HTTP error
Auth(AuthError)
Authentication error
Retry(RetryError)
Retry error
Cache(CacheError)
Cache error
InvalidUrl
Invalid URL
UnsupportedProtocol
Unsupported protocol
NotFound
Object not found
PermissionDenied
Permission denied
Timeout
Operation timeout
RateLimitExceeded
Rate limit exceeded
InvalidConfiguration
Invalid configuration
NotSupported
Operation not supported
Internal
Internal error
Trait Implementations§
Source§impl Debug for CloudError
impl Debug for CloudError
Source§impl Display for CloudError
impl Display for CloudError
Source§impl Error for CloudError
impl Error for CloudError
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<AuthError> for CloudError
impl From<AuthError> for CloudError
Source§impl From<AzureError> for CloudError
impl From<AzureError> for CloudError
Source§fn from(source: AzureError) -> Self
fn from(source: AzureError) -> Self
Converts to this type from the input type.
Source§impl From<CacheError> for CloudError
impl From<CacheError> for CloudError
Source§fn from(source: CacheError) -> Self
fn from(source: CacheError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for CloudError
Available on crate feature std only.
impl From<Error> for CloudError
Available on crate feature
std only.Source§impl From<GcsError> for CloudError
impl From<GcsError> for CloudError
Source§impl From<HttpError> for CloudError
impl From<HttpError> for CloudError
Source§impl From<IoError> for CloudError
impl From<IoError> for CloudError
Source§impl From<OxiGdalError> for CloudError
impl From<OxiGdalError> for CloudError
Source§fn from(err: OxiGdalError) -> Self
fn from(err: OxiGdalError) -> Self
Converts to this type from the input type.
Source§impl From<ParseError> for CloudError
impl From<ParseError> for CloudError
Source§fn from(err: ParseError) -> Self
fn from(err: ParseError) -> Self
Converts to this type from the input type.
Source§impl From<RetryError> for CloudError
impl From<RetryError> for CloudError
Source§fn from(source: RetryError) -> Self
fn from(source: RetryError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CloudError
impl RefUnwindSafe for CloudError
impl Send for CloudError
impl Sync for CloudError
impl Unpin for CloudError
impl UnsafeUnpin for CloudError
impl UnwindSafe for CloudError
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 moreCreates a shared type from an unshared type.
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.