Enum DmarcError
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§
§impl Clone for DmarcError
impl Clone for DmarcError
§fn clone(&self) -> DmarcError
fn clone(&self) -> DmarcError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for DmarcError
impl Debug for DmarcError
§impl Display for DmarcError
impl Display for DmarcError
§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()
§impl Hash for DmarcError
impl Hash for DmarcError
§impl Ord for DmarcError
impl Ord for DmarcError
§impl PartialEq for DmarcError
impl PartialEq for DmarcError
§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