pub enum SpfResult {
Pass,
Fail,
SoftFail,
Neutral,
TempError,
PermError,
None,
}Expand description
The result of an SPF check (RFC 7208, Section 2.6).
Displays as the lowercase RFC token (pass, fail, softfail,
neutral, temperror, permerror, none) and parses from the same
tokens, ignoring case, through FromStr (which fails with
Error::Parse on any other input).
Variants§
Pass
The client is authorized to use the domain (Section 2.6.3).
Fail
The client is explicitly not authorized to use the domain (Section 2.6.4).
SoftFail
The client is probably not authorized, a weak statement between
fail and neutral (Section 2.6.5).
Neutral
The domain owner makes no assertion about the client (Section 2.6.2). Also returned when no directive matches.
TempError
A transient error, usually a DNS failure, prevented the check (Section 2.6.6).
PermError
The published record could not be interpreted, or a processing limit was exceeded (Section 2.6.7).
None
No SPF record was found, or the domain is not a valid, fully qualified name (Section 2.6.1).
Trait Implementations§
impl Copy for SpfResult
impl Eq for SpfResult
impl StructuralPartialEq for SpfResult
Auto Trait Implementations§
impl Freeze for SpfResult
impl RefUnwindSafe for SpfResult
impl Send for SpfResult
impl Sync for SpfResult
impl Unpin for SpfResult
impl UnsafeUnpin for SpfResult
impl UnwindSafe for SpfResult
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more