pub enum DmarcError {
Empty,
InvalidValue,
InvalidPercentage,
UnknownLabel,
}Expand description
Error returned when DMARC metadata is invalid.
Variants§
Empty
The supplied value was empty.
InvalidValue
The supplied value was invalid for this primitive.
InvalidPercentage
The supplied percentage was outside 0..=100.
UnknownLabel
The supplied label was not recognized.
Trait Implementations§
Source§impl Clone for DmarcError
impl Clone for DmarcError
Source§fn clone(&self) -> DmarcError
fn clone(&self) -> DmarcError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DmarcError
impl Debug for DmarcError
Source§impl Display for DmarcError
impl Display for DmarcError
Source§impl Error for DmarcError
impl Error for DmarcError
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 Hash for DmarcError
impl Hash for DmarcError
Source§impl Ord for DmarcError
impl Ord for DmarcError
Source§fn cmp(&self, other: &DmarcError) -> Ordering
fn cmp(&self, other: &DmarcError) -> Ordering
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 PartialEq for DmarcError
impl PartialEq for DmarcError
Source§fn eq(&self, other: &DmarcError) -> bool
fn eq(&self, other: &DmarcError) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for DmarcError
impl PartialOrd for DmarcError
impl Copy for DmarcError
impl Eq for DmarcError
impl StructuralPartialEq for DmarcError
Auto Trait Implementations§
impl Freeze for DmarcError
impl RefUnwindSafe for DmarcError
impl Send for DmarcError
impl Sync for DmarcError
impl Unpin for DmarcError
impl UnsafeUnpin for DmarcError
impl UnwindSafe for DmarcError
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