pub enum MessageIdError {
Empty,
MissingAt,
TooManyAtSigns,
InvalidLocal,
InvalidDomain,
}Expand description
Error returned when message identity primitives fail validation.
Variants§
Empty
The supplied value was empty after trimming.
MissingAt
The identifier did not contain an at sign.
TooManyAtSigns
The identifier contained too many at signs.
InvalidLocal
The local part was invalid.
InvalidDomain
The domain part was invalid.
Trait Implementations§
Source§impl Clone for MessageIdError
impl Clone for MessageIdError
Source§fn clone(&self) -> MessageIdError
fn clone(&self) -> MessageIdError
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 MessageIdError
impl Debug for MessageIdError
Source§impl Display for MessageIdError
impl Display for MessageIdError
Source§impl Error for MessageIdError
impl Error for MessageIdError
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 MessageIdError
impl Hash for MessageIdError
Source§impl Ord for MessageIdError
impl Ord for MessageIdError
Source§fn cmp(&self, other: &MessageIdError) -> Ordering
fn cmp(&self, other: &MessageIdError) -> 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 MessageIdError
impl PartialEq for MessageIdError
Source§fn eq(&self, other: &MessageIdError) -> bool
fn eq(&self, other: &MessageIdError) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for MessageIdError
impl PartialOrd for MessageIdError
impl Copy for MessageIdError
impl Eq for MessageIdError
impl StructuralPartialEq for MessageIdError
Auto Trait Implementations§
impl Freeze for MessageIdError
impl RefUnwindSafe for MessageIdError
impl Send for MessageIdError
impl Sync for MessageIdError
impl Unpin for MessageIdError
impl UnsafeUnpin for MessageIdError
impl UnwindSafe for MessageIdError
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