#[non_exhaustive]pub enum Kind {
Show 18 variants
NameTooLong,
NetDisabled,
EmptyLabel,
EmailLocalTooLong,
EmailTooLong,
EmptyName,
IllegalCharacter,
InvalidDomain,
InvalidIpAddr,
LabelEndNotAlnum,
LabelStartNotAlnum,
LabelTooLong,
NoAtSign,
NoHostPart,
NoUserPart,
NumericTld,
QuoteUnclosed,
TooManyLabels,
}Expand description
Description of the error
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
NameTooLong
NetDisabled
EmptyLabel
EmailLocalTooLong
EmailTooLong
EmptyName
IllegalCharacter
InvalidDomain
InvalidIpAddr
LabelEndNotAlnum
LabelStartNotAlnum
LabelTooLong
NoAtSign
NoHostPart
NoUserPart
NumericTld
QuoteUnclosed
TooManyLabels
Trait Implementations§
Source§impl From<AddrParseError> for Kind
Available on crate feature std only.
impl From<AddrParseError> for Kind
Available on crate feature
std only.Source§fn from(_: AddrParseError) -> Self
fn from(_: AddrParseError) -> Self
Converts to this type from the input type.
Source§impl Ord for Kind
impl Ord for Kind
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 Kind
impl PartialOrd for Kind
impl Copy for Kind
impl Eq for Kind
impl StructuralPartialEq for Kind
Auto Trait Implementations§
impl Freeze for Kind
impl RefUnwindSafe for Kind
impl Send for Kind
impl Sync for Kind
impl Unpin for Kind
impl UnsafeUnpin for Kind
impl UnwindSafe for Kind
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