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
Performs the conversion.
