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
Source is invalid, SPF struct was not created using from_str()
Source string length exceeds 255 Characters
Exceeds RFC lookup limit.
Source Spf String has not been parsed.
Only one white space is permitted bdtween mechanisms.
Invalid SPF
Rediect with additional Mechanisms
InvalidIPAddr(IpNetworkError)Network Address is not valid Error.
Tuple Fields of InvalidIPAddr
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 with
Returns true if the SpfError indicates an Invalid IP Address
Trait Implementations
Performs the conversion.