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 between mechanisms.
Invalid SPF
Redirect with All Mechanism
InvalidIPAddr(IpNetworkError)Network Address is not valid
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
Returns true if the SpfError indicates an Invalid IP Address
Trait Implementations
Performs the conversion.