Enum DkimSignatureError

Source
pub enum DkimSignatureError<'hdr> {
    ParsingDetailed(ParsingDetail<'hdr>),
    NoTagFound,
    UnexpectedEqual,
    ParseValueUnmatch,
    ParseValueInvalid(DkimTagValueError),
    MissingVersion,
    MissingAlgorithm,
    MissingSignature,
    MissingBodyHash,
    MissingResponsibleSdid,
    MissingSignedHeaderFields,
    MissingSelector,
}
Expand description

DKIM-Signature header parsing Errors

Variants§

§

ParsingDetailed(ParsingDetail<'hdr>)

Detailed with ParsingDetail

§

NoTagFound

No tags found at all

§

UnexpectedEqual

Encountered unexpected Equal ‘=’ character when a tag was expected

§

ParseValueUnmatch

Error (from lexer) trying to parse value - Unmatched

§

ParseValueInvalid(DkimTagValueError)

Error (from parse conversion) trying to parse a valid value on tag

§

MissingVersion

Missign Required v=

§

MissingAlgorithm

Msising Required a=

§

MissingSignature

Msising Required b=

§

MissingBodyHash

Missing Required bh=

§

MissingResponsibleSdid

Missing Required d=

§

MissingSignedHeaderFields

Msising Required h=

§

MissingSelector

Missing Required s=

Trait Implementations§

Source§

impl<'hdr> Debug for DkimSignatureError<'hdr>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'hdr> From<DkimTagValueError> for DkimSignatureError<'hdr>

Source§

fn from(e: DkimTagValueError) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

§

impl<'hdr> Freeze for DkimSignatureError<'hdr>

§

impl<'hdr> RefUnwindSafe for DkimSignatureError<'hdr>

§

impl<'hdr> Send for DkimSignatureError<'hdr>

§

impl<'hdr> Sync for DkimSignatureError<'hdr>

§

impl<'hdr> Unpin for DkimSignatureError<'hdr>

§

impl<'hdr> UnwindSafe for DkimSignatureError<'hdr>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.