#[non_exhaustive]pub enum S3Error {
Show 25 variants
Utf8(Utf8Error),
MaxExpiry(u32),
HttpFailWithBody(u16, String),
HttpFail,
Credentials(CredentialsError),
Region(RegionError),
HmacInvalidLength(InvalidLength),
UrlParse(ParseError),
Io(Error),
Http(Error),
Hyper(Error),
NativeTls(Error),
HeaderToStr(ToStrError),
FromUtf8(FromUtf8Error),
SerdeXml(DeError),
InvalidHeaderValue(InvalidHeaderValue),
InvalidHeaderName(InvalidHeaderName),
WLCredentials,
RLCredentials,
TimeFormatError(Format),
FmtError(Error),
SerdeError(Error),
PostPolicyError(PostPolicyError),
CredentialsReadLock,
CredentialsWriteLock,
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Utf8(Utf8Error)
MaxExpiry(u32)
HttpFailWithBody(u16, String)
HttpFail
Credentials(CredentialsError)
Region(RegionError)
HmacInvalidLength(InvalidLength)
UrlParse(ParseError)
Io(Error)
Http(Error)
Hyper(Error)
NativeTls(Error)
HeaderToStr(ToStrError)
FromUtf8(FromUtf8Error)
SerdeXml(DeError)
InvalidHeaderValue(InvalidHeaderValue)
InvalidHeaderName(InvalidHeaderName)
WLCredentials
RLCredentials
TimeFormatError(Format)
FmtError(Error)
SerdeError(Error)
PostPolicyError(PostPolicyError)
CredentialsReadLock
CredentialsWriteLock
Trait Implementations§
Source§impl Error for S3Error
impl Error for S3Error
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<CredentialsError> for S3Error
impl From<CredentialsError> for S3Error
Source§fn from(source: CredentialsError) -> Self
fn from(source: CredentialsError) -> Self
Converts to this type from the input type.
Source§impl From<FromUtf8Error> for S3Error
impl From<FromUtf8Error> for S3Error
Source§fn from(source: FromUtf8Error) -> Self
fn from(source: FromUtf8Error) -> Self
Converts to this type from the input type.
Source§impl From<InvalidHeaderName> for S3Error
impl From<InvalidHeaderName> for S3Error
Source§fn from(source: InvalidHeaderName) -> Self
fn from(source: InvalidHeaderName) -> Self
Converts to this type from the input type.
Source§impl From<InvalidHeaderValue> for S3Error
impl From<InvalidHeaderValue> for S3Error
Source§fn from(source: InvalidHeaderValue) -> Self
fn from(source: InvalidHeaderValue) -> Self
Converts to this type from the input type.
Source§impl From<InvalidLength> for S3Error
impl From<InvalidLength> for S3Error
Source§fn from(source: InvalidLength) -> Self
fn from(source: InvalidLength) -> Self
Converts to this type from the input type.
Source§impl From<ParseError> for S3Error
impl From<ParseError> for S3Error
Source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Converts to this type from the input type.
Source§impl From<PostPolicyError> for S3Error
impl From<PostPolicyError> for S3Error
Source§fn from(source: PostPolicyError) -> Self
fn from(source: PostPolicyError) -> Self
Converts to this type from the input type.
Source§impl From<RegionError> for S3Error
impl From<RegionError> for S3Error
Source§fn from(source: RegionError) -> Self
fn from(source: RegionError) -> Self
Converts to this type from the input type.
Source§impl From<ToStrError> for S3Error
impl From<ToStrError> for S3Error
Source§fn from(source: ToStrError) -> Self
fn from(source: ToStrError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for S3Error
impl !RefUnwindSafe for S3Error
impl Send for S3Error
impl Sync for S3Error
impl Unpin for S3Error
impl !UnwindSafe for S3Error
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