pub enum SpfError {
Empty,
UnknownLabel,
InvalidTerm,
}Expand description
Error returned when SPF metadata is invalid.
Variants§
Empty
The supplied value was empty.
UnknownLabel
The supplied label was not recognized.
InvalidTerm
The supplied term was invalid.
Trait Implementations§
Source§impl Error for SpfError
impl Error for SpfError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl Ord for SpfError
impl Ord for SpfError
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for SpfError
impl PartialOrd for SpfError
impl Copy for SpfError
impl Eq for SpfError
impl StructuralPartialEq for SpfError
Auto Trait Implementations§
impl Freeze for SpfError
impl RefUnwindSafe for SpfError
impl Send for SpfError
impl Sync for SpfError
impl Unpin for SpfError
impl UnsafeUnpin for SpfError
impl UnwindSafe for SpfError
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
Mutably borrows from an owned value. Read more