pub enum Error {
Show 18 variants
Io {
source: Error,
description: String,
backtrace: Backtrace,
},
Delay {
source: Error,
backtrace: Backtrace,
},
Timeout {
source: Elapsed,
},
ListObjectsV2 {
source: SdkError<ListObjectsV2Error>,
},
DeleteObjects {
source: SdkError<DeleteObjectsError>,
},
DeleteObject {
source: SdkError<DeleteObjectError>,
},
CopyObject {
source: SdkError<CopyObjectError>,
},
GetObject {
key: String,
bucket: String,
source: SdkError<GetObjectError>,
},
TokioIo {
source: Error,
},
AnyError {
source: Box<dyn Error + Send + Sync>,
},
MissingKeyOrSize,
MissingContentLength,
PutObject {
source: SdkError<PutObjectError>,
key: String,
backtrace: Backtrace,
},
NewListObjectsV2 {
source: SdkError<ListObjectsV2Error>,
},
NewDeleteObjects {
source: SdkError<DeleteObjectsError>,
},
NewDeleteObject {
source: SdkError<DeleteObjectError>,
},
NewCopyObject {
source: SdkError<CopyObjectError>,
},
NewGetObject {
key: String,
bucket: String,
source: SdkError<GetObjectError>,
},
}
Variants§
Io
Delay
Error originating from tokio::Delay
Timeout
ListObjectsV2
Fields
§
source: SdkError<ListObjectsV2Error>
DeleteObjects
Fields
§
source: SdkError<DeleteObjectsError>
DeleteObject
Fields
§
source: SdkError<DeleteObjectError>
CopyObject
Fields
§
source: SdkError<CopyObjectError>
GetObject
TokioIo
AnyError
MissingKeyOrSize
MissingContentLength
PutObject
NewListObjectsV2
Fields
§
source: SdkError<ListObjectsV2Error>
NewDeleteObjects
Fields
§
source: SdkError<DeleteObjectsError>
NewDeleteObject
Fields
§
source: SdkError<DeleteObjectError>
NewCopyObject
Fields
§
source: SdkError<CopyObjectError>
NewGetObject
Trait Implementations§
Source§impl Error for Error
impl Error for Error
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§impl ErrorCompat for Error
impl ErrorCompat for Error
Source§impl From<Error> for Error
impl From<Error> for Error
Source§fn from(err: ByteStreamError) -> Self
fn from(err: ByteStreamError) -> Self
Converts to this type from the input type.
Source§impl IntoError<Error> for CopyObject
impl IntoError<Error> for CopyObject
Source§impl IntoError<Error> for DeleteObject
impl IntoError<Error> for DeleteObject
Source§impl IntoError<Error> for DeleteObjects
impl IntoError<Error> for DeleteObjects
Source§impl IntoError<Error> for ListObjectsV2
impl IntoError<Error> for ListObjectsV2
Source§impl IntoError<Error> for MissingContentLength
impl IntoError<Error> for MissingContentLength
Source§impl IntoError<Error> for MissingKeyOrSize
impl IntoError<Error> for MissingKeyOrSize
Source§impl IntoError<Error> for NewCopyObject
impl IntoError<Error> for NewCopyObject
Source§impl IntoError<Error> for NewDeleteObject
impl IntoError<Error> for NewDeleteObject
Source§impl IntoError<Error> for NewDeleteObjects
impl IntoError<Error> for NewDeleteObjects
Source§impl<__T0, __T1> IntoError<Error> for NewGetObject<__T0, __T1>
impl<__T0, __T1> IntoError<Error> for NewGetObject<__T0, __T1>
Source§impl IntoError<Error> for NewListObjectsV2
impl IntoError<Error> for NewListObjectsV2
Auto Trait Implementations§
impl !Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
Blanket Implementations§
Source§impl<T> AsErrorSource for Twhere
T: Error + 'static,
impl<T> AsErrorSource for Twhere
T: Error + 'static,
Source§fn as_error_source(&self) -> &(dyn Error + 'static)
fn as_error_source(&self) -> &(dyn Error + 'static)
For maximum effectiveness, this needs to be called as a method
to benefit from Rust’s automatic dereferencing of method
receivers.
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.