Enum AuthResultsError

Source
pub enum AuthResultsError<'hdr> {
Show 35 variants RunawayUnknownMethod(usize), ParsingDetailed(ParsingDetail<'hdr>), NoHeader, Parse, ParseComment(CommentError<'hdr>), ParseHost(String), ParsePtypeBugGating, ParsePtypeBugInvalidProperty, ParsePtypeBugPropertyGating, ParsePtypeInvalidAssociatedPtype(ParsingDetail<'hdr>), InvalidDkimResult(String), InvalidSpfResult(String), InvalidIpRevResult(String), InvalidProperty, InvalidSmtpAuthResult(String), InvalidResultStage, InvalidVersion, NoAssociatedVersion, NoAssociatedPolicy, NoAssociatedReason, NoHostname, ParsePtypeNoMethodResult, PropertiesNotImplemented, PropertyValuesNotImplemented, RunAwayAuthPropertyKey, RunAwayAuthPropertyValue, RunAwayComment, RunAwayDkimPropertyKey, RunAwayDkimPropertyValue, RunAwayIpRevPropertyKey, RunAwayIpRevPropertyValue, RunAwaySpfPropertyKey, RunAwaySpfPropertyValue, UnexpectedForwardSlash, ParseCurrentPushNotImplemented,
}
Expand description

Errors relating to parsing Authentication-Results Header

Variants§

§

RunawayUnknownMethod(usize)

Could not find the ending for unknown method block beginning from

§

ParsingDetailed(ParsingDetail<'hdr>)

Detailed with ParsingDetail

§

NoHeader

No header

§

Parse

Unknown parsing error

§

ParseComment(CommentError<'hdr>)

Comment parsing error

§

ParseHost(String)

Host parsing error

§

ParsePtypeBugGating

Bug

§

ParsePtypeBugInvalidProperty

Bug

§

ParsePtypeBugPropertyGating

Bug

§

ParsePtypeInvalidAssociatedPtype(ParsingDetail<'hdr>)

Invalid associated ptype Encountered

§

InvalidDkimResult(String)

Invalid dkim method Result Code

§

InvalidSpfResult(String)

Invalid spf method Result Code

§

InvalidIpRevResult(String)

Invalid iprev method Result Code

§

InvalidProperty

Was not a valid ptype/property per IANA and strict validation was used

§

InvalidSmtpAuthResult(String)

Invalid auth method Result code

§

InvalidResultStage

Invalid stage in result

§

InvalidVersion

Invalid version - Only 1 allowed

§

NoAssociatedVersion

No associated version found when required

§

NoAssociatedPolicy

No associated policy found when defined

§

NoAssociatedReason

No assicited reason found when defined

§

NoHostname

No hostname found that is required

§

ParsePtypeNoMethodResult

Err

§

PropertiesNotImplemented

Bug property keys not implemented for ptype

§

PropertyValuesNotImplemented

Bug property values not implemented for ptype

§

RunAwayAuthPropertyKey

Run-away auth method property key

§

RunAwayAuthPropertyValue

Run-away auth method property value

§

RunAwayComment

Run-away comment

§

RunAwayDkimPropertyKey

Run-away dkim method property key

§

RunAwayDkimPropertyValue

Run-away dkim method property value

§

RunAwayIpRevPropertyKey

Run-away iprev method property key

§

RunAwayIpRevPropertyValue

Run-away iprev method property value

§

RunAwaySpfPropertyKey

Run-away spf method property key

§

RunAwaySpfPropertyValue

Run-away spf method property value

§

UnexpectedForwardSlash

Unexpected forward slash

§

ParseCurrentPushNotImplemented

Bug

Trait Implementations§

Source§

impl<'hdr> Clone for AuthResultsError<'hdr>

Source§

fn clone(&self) -> AuthResultsError<'hdr>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<'hdr> Debug for AuthResultsError<'hdr>

Source§

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

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

impl<'hdr> PartialEq for AuthResultsError<'hdr>

Source§

fn eq(&self, other: &AuthResultsError<'hdr>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<'hdr> StructuralPartialEq for AuthResultsError<'hdr>

Auto Trait Implementations§

§

impl<'hdr> Freeze for AuthResultsError<'hdr>

§

impl<'hdr> RefUnwindSafe for AuthResultsError<'hdr>

§

impl<'hdr> Send for AuthResultsError<'hdr>

§

impl<'hdr> Sync for AuthResultsError<'hdr>

§

impl<'hdr> Unpin for AuthResultsError<'hdr>

§

impl<'hdr> UnwindSafe for AuthResultsError<'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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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.