pub enum SpfDisposition {
None,
Neutral,
Pass,
Fail,
SoftFail,
TempError,
PermError,
}
Variants§
None
A result of “none” means either (a) no syntactically valid DNS domain name was extracted from the SMTP session that could be used as the one to be authorized, or (b) no SPF records were retrieved from the DNS.
Neutral
A “neutral” result means the ADMD has explicitly stated that it is not asserting whether the IP address is authorized.
Pass
A “pass” result is an explicit statement that the client is authorized to inject mail with the given identity.
Fail
A “fail” result is an explicit statement that the client is not authorized to use the domain in the given identity.
SoftFail
A “softfail” result is a weak statement by the publishing ADMD that the host is probably not authorized. It has not published a stronger, more definitive policy that results in a “fail”.
TempError
A “temperror” result means the SPF verifier encountered a transient (generally DNS) error while performing the check. A later retry may succeed without further DNS operator action.
PermError
A “permerror” result means the domain’s published records could not be correctly interpreted. This signals an error condition that definitely requires DNS operator intervention to be resolved.
Implementations§
Trait Implementations§
source§impl Clone for SpfDisposition
impl Clone for SpfDisposition
source§fn clone(&self) -> SpfDisposition
fn clone(&self) -> SpfDisposition
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SpfDisposition
impl Debug for SpfDisposition
source§impl Display for SpfDisposition
impl Display for SpfDisposition
source§impl<'xml> FromXml<'xml> for SpfDisposition
impl<'xml> FromXml<'xml> for SpfDisposition
const KIND: Kind = ::instant_xml::Kind::Scalar
type Accumulator = Option<SpfDisposition>
fn matches(id: Id<'_>, field: Option<Id<'_>>) -> bool
fn deserialize<'cx>( into: &mut Self::Accumulator, field: &'static str, deserializer: &mut Deserializer<'cx, 'xml>, ) -> Result<(), Error>
source§impl PartialEq for SpfDisposition
impl PartialEq for SpfDisposition
source§impl Serialize for SpfDisposition
impl Serialize for SpfDisposition
source§impl ToXml for SpfDisposition
impl ToXml for SpfDisposition
impl Copy for SpfDisposition
impl Eq for SpfDisposition
impl StructuralPartialEq for SpfDisposition
Auto Trait Implementations§
impl Freeze for SpfDisposition
impl RefUnwindSafe for SpfDisposition
impl Send for SpfDisposition
impl Sync for SpfDisposition
impl Unpin for SpfDisposition
impl UnwindSafe for SpfDisposition
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.