pub enum HttpSigError {
Show 15 variants
Base64DecodeError(DecodeError),
ParsePrivateKeyError(String),
ParsePublicKeyError(String),
ParseSignatureError(String),
InvalidSignature(String),
ParseSFVError(String),
InvalidComponentName(String),
InvalidComponentParam(String),
InvalidComponentId(String),
InvalidComponent(String),
InvalidSignatureParams(String),
BuildSignatureHeaderError(String),
BuildSignatureBaseError(String),
ExpiredSignatureParams(String),
NotYetImplemented(String),
}
Expand description
Error type for http signature
Variants§
Base64DecodeError(DecodeError)
ParsePrivateKeyError(String)
Invalid private key for asymmetric algorithm
ParsePublicKeyError(String)
Invalid public key for asymmetric algorithm
ParseSignatureError(String)
Signature parse error
InvalidSignature(String)
Invalid Signature
ParseSFVError(String)
Failed to parse structured field value
InvalidComponentName(String)
Invalid http message component name
InvalidComponentParam(String)
Invalid http message component param
InvalidComponentId(String)
Invalid http message component id
InvalidComponent(String)
Invalid http message component
InvalidSignatureParams(String)
Invalid signature params
BuildSignatureHeaderError(String)
Error in building signature header
BuildSignatureBaseError(String)
Error in building signature base
ExpiredSignatureParams(String)
Expired signature params
NotYetImplemented(String)
NotYetImplemented
Trait Implementations§
Source§impl Debug for HttpSigError
impl Debug for HttpSigError
Source§impl Display for HttpSigError
impl Display for HttpSigError
Source§impl Error for HttpSigError
impl Error for HttpSigError
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<DecodeError> for HttpSigError
impl From<DecodeError> for HttpSigError
Source§fn from(source: DecodeError) -> HttpSigError
fn from(source: DecodeError) -> HttpSigError
Converts to this type from the input type.
Source§impl From<HttpSigError> for HyperSigError
impl From<HttpSigError> for HyperSigError
Source§fn from(source: HttpSigError) -> Self
fn from(source: HttpSigError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for HttpSigError
impl RefUnwindSafe for HttpSigError
impl Send for HttpSigError
impl Sync for HttpSigError
impl Unpin for HttpSigError
impl UnwindSafe for HttpSigError
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