[][src]Enum picky::http::http_signature::HttpSignatureError

#[non_exhaustive]
pub enum HttpSignatureError {
    Base64Decoding {
        source: DecodeError,
    },
    NotYetValid {
        created: u64,
        now: u64,
    },
    Expired {
        not_after: u64,
        now: u64,
    },
    Signature {
        source: SignatureError,
    },
    SigningStringGeneration {
        source: HttpRequestError,
    },
    InvalidSigningString {
        line: String,
    },
    MissingBuilderArgument {
        arg: &'static str,
    },
    BuilderEmptyHeaders,
    BuilderHeadersProvidedWithPreGenerated,
    MissingRequiredParameter {
        parameter: &'static str,
    },
    InvalidParameter {
        parameter: &'static str,
    },
}

Variants (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.
Base64Decoding

couldn't decode base64

Fields of Base64Decoding

source: DecodeError
NotYetValid

signature is not yet valid

Fields of NotYetValid

created: u64now: u64
Expired

certificate expired

Fields of Expired

not_after: u64now: u64
Signature

signature error occurred

Fields of Signature

source: SignatureError
SigningStringGeneration

couldn't generate signing string

Fields of SigningStringGeneration

source: HttpRequestError
InvalidSigningString

invalid signing string

Fields of InvalidSigningString

line: String
MissingBuilderArgument

missing required builder argument

Fields of MissingBuilderArgument

arg: &'static str
BuilderEmptyHeaders

builder requires a non empty headers parameter

BuilderHeadersProvidedWithPreGenerated

headers parameter shouldn't be provided when using builder with a pre-generated signing string

MissingRequiredParameter

required parameter is missing from http signature string

Fields of MissingRequiredParameter

parameter: &'static str
InvalidParameter

a parameter is present but invalid

Fields of InvalidParameter

parameter: &'static str

Trait Implementations

impl Debug for HttpSignatureError[src]

impl Display for HttpSignatureError[src]

impl Error for HttpSignatureError where
    Self: Debug + Display
[src]

impl ErrorCompat for HttpSignatureError[src]

impl From<DecodeError> for HttpSignatureError[src]

impl From<HttpRequestError> for HttpSignatureError[src]

impl From<SignatureError> for HttpSignatureError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> AsErrorSource for T where
    T: 'static + Error
[src]

impl<T> AsFail for T where
    T: Fail, 

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<E> Fail for E where
    E: 'static + Error + Send + Sync

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,