Enum decon_spf::SpfError[][src]

pub enum SpfError {
    InvalidSource,
    SourceLengthExceeded,
    LookupLimitExceeded,
    HasNotBeenParsed,
    WhiteSpaceSyntaxError,
    InvalidSPF,
    RedirectWithAllMechanism,
    InvalidIPAddr(IpNetworkError),
}
Expand description

A list of expected possible errors for SPF records.

Variants

InvalidSource

Source is invalid, SPF struct was not created using from_str()

SourceLengthExceeded

Source string length exceeds 255 Characters

LookupLimitExceeded

Exceeds RFC lookup limit.

HasNotBeenParsed

Source Spf String has not been parsed.

WhiteSpaceSyntaxError

Only one white space is permitted between mechanisms.

InvalidSPF

Invalid SPF

RedirectWithAllMechanism

Redirect with All Mechanism

InvalidIPAddr(IpNetworkError)

Tuple Fields

Network Address is not valid

Implementations

Returns true if the SpfError is any of those listed SpfError.

Returns true if the SpfError indicates and Invalid Source error.

Returns true if the SpfError indictes source length exceeds 255 characters.

Returns true if the SpfError indicates SPF contains more than 10 DNS lookups.

Returns true if the SpfError indicates source of Spf has not been parsed.

Returns true if the SpfError indicates this is an invalid Spf Record.

Returns true if the SpfError indicates the presents of All Mechanism

Returns true if the SpfError indicates an Invalid IP Address

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

The lower-level source of this error, if any. Read more

🔬 This is a nightly-only experimental API. (backtrace)

Returns a stack backtrace, if available, of where this error occurred. Read more

👎 Deprecated since 1.42.0:

use the Display impl or to_string()

👎 Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Performs the conversion.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.