pub enum SigV4aGateError {
MissingAuthorization,
MalformedAuthorization,
UnknownAccessKey(String),
Verify(SigV4aError),
}Expand description
Failure modes from SigV4aGate::pre_route. All variants map to
HTTP 403 with one of the two AWS-standard error codes
(InvalidAccessKeyId or SignatureDoesNotMatch).
Variants§
Implementations§
Source§impl SigV4aGateError
impl SigV4aGateError
Sourcepub fn s3_error_code(&self) -> &'static str
pub fn s3_error_code(&self) -> &'static str
AWS S3 error code that should accompany a 403 response.
Trait Implementations§
Source§impl Debug for SigV4aGateError
impl Debug for SigV4aGateError
Source§impl Display for SigV4aGateError
impl Display for SigV4aGateError
Source§impl Error for SigV4aGateError
impl Error for SigV4aGateError
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 SigV4aGateError
impl !RefUnwindSafe for SigV4aGateError
impl Send for SigV4aGateError
impl Sync for SigV4aGateError
impl Unpin for SigV4aGateError
impl UnsafeUnpin for SigV4aGateError
impl !UnwindSafe for SigV4aGateError
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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