pub enum AuthError {
MissingAuthHeader,
InvalidAuthHeader,
UnsupportedAlgorithm(String),
MissingHeader(String),
InvalidCredential,
AccessKeyNotFound(String),
SignatureDoesNotMatch,
RequestExpired,
MissingQueryParam(String),
}Expand description
Errors that can occur during AWS Signature Version 4 authentication.
Variants§
MissingAuthHeader
The Authorization header is missing from the request.
InvalidAuthHeader
The Authorization header could not be parsed.
UnsupportedAlgorithm(String)
The signing algorithm is not supported (only AWS4-HMAC-SHA256 is supported).
MissingHeader(String)
A required HTTP header referenced in SignedHeaders is missing.
InvalidCredential
The Credential component does not match the expected format
(AKID/date/region/service/aws4_request).
AccessKeyNotFound(String)
The access key ID was not found in the credential store.
SignatureDoesNotMatch
The computed signature does not match the provided signature.
RequestExpired
The presigned URL has expired (current time exceeds X-Amz-Date + X-Amz-Expires).
MissingQueryParam(String)
A required query parameter for presigned URL authentication is missing.
Trait Implementations§
Source§impl Error for AuthError
impl Error for AuthError
1.30.0 · 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()
Auto Trait Implementations§
impl Freeze for AuthError
impl RefUnwindSafe for AuthError
impl Send for AuthError
impl Sync for AuthError
impl Unpin for AuthError
impl UnsafeUnpin for AuthError
impl UnwindSafe for AuthError
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