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 copy 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)>
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
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for PartiallyQualifiedDomainNameError
impl PartialOrd for PartiallyQualifiedDomainNameError
source§fn partial_cmp(
&self,
other: &PartiallyQualifiedDomainNameError,
) -> Option<Ordering>
fn partial_cmp( &self, other: &PartiallyQualifiedDomainNameError, ) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)