Enum http_sig::SigningError
source · #[non_exhaustive]pub enum SigningError {
Canonicalize(CanonicalizeError),
InvalidSignatureCreationDate,
InvalidSignatureExpiresDate,
}
Expand description
The types of error which may occur whilst signing.
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.
Canonicalize(CanonicalizeError)
A header required to be part of the signature was not present
on the request, and the skip_missing
configuration option
was disabled.
InvalidSignatureCreationDate
The signature creation date was in the future
InvalidSignatureExpiresDate
The signature expires date was in the past
Trait Implementations§
source§impl Debug for SigningError
impl Debug for SigningError
source§impl Display for SigningError
impl Display for SigningError
source§impl Error for SigningError
impl Error for SigningError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<CanonicalizeError> for SigningError
impl From<CanonicalizeError> for SigningError
source§fn from(other: CanonicalizeError) -> Self
fn from(other: CanonicalizeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for SigningError
impl Send for SigningError
impl Sync for SigningError
impl Unpin for SigningError
impl UnwindSafe for SigningError
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