pub enum PartiallyQualifiedDomainNameError {
DomainIsFullyQualified,
SegmentError(DomainSegmentError),
NonLeadingWildcard,
}Expand description
Produced when attempting to construct a PartiallyQualifiedDomainName
from an invalid string.
Variants§
DomainIsFullyQualified
The parsed string is not partially qualified. That is, it contains a trailing dot making it fully qualified.
SegmentError(DomainSegmentError)
One or more of the segments of the domain specified in the string are invalid.
NonLeadingWildcard
Wildcard segments must only appear at the beginning of a record.
Trait Implementations§
Source§impl Clone for PartiallyQualifiedDomainNameError
impl Clone for PartiallyQualifiedDomainNameError
Source§fn clone(&self) -> PartiallyQualifiedDomainNameError
fn clone(&self) -> PartiallyQualifiedDomainNameError
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 moreSource§impl Error for PartiallyQualifiedDomainNameError
impl Error for PartiallyQualifiedDomainNameError
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 From<DomainSegmentError> for PartiallyQualifiedDomainNameError
impl From<DomainSegmentError> for PartiallyQualifiedDomainNameError
Source§fn from(source: DomainSegmentError) -> Self
fn from(source: DomainSegmentError) -> Self
Converts to this type from the input type.
Source§impl Ord for PartiallyQualifiedDomainNameError
impl Ord for PartiallyQualifiedDomainNameError
Source§fn cmp(&self, other: &PartiallyQualifiedDomainNameError) -> Ordering
fn cmp(&self, other: &PartiallyQualifiedDomainNameError) -> Ordering
1.21.0 · 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 PartiallyQualifiedDomainNameError
impl PartialEq for PartiallyQualifiedDomainNameError
Source§fn eq(&self, other: &PartiallyQualifiedDomainNameError) -> bool
fn eq(&self, other: &PartiallyQualifiedDomainNameError) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for PartiallyQualifiedDomainNameError
impl PartialOrd for PartiallyQualifiedDomainNameError
impl Eq for PartiallyQualifiedDomainNameError
impl StructuralPartialEq for PartiallyQualifiedDomainNameError
Auto Trait Implementations§
impl Freeze for PartiallyQualifiedDomainNameError
impl RefUnwindSafe for PartiallyQualifiedDomainNameError
impl Send for PartiallyQualifiedDomainNameError
impl Sync for PartiallyQualifiedDomainNameError
impl Unpin for PartiallyQualifiedDomainNameError
impl UnwindSafe for PartiallyQualifiedDomainNameError
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