pub enum DomainParseError {
Empty,
EmptyLabel {
domain: String,
},
HasPrefix {
domain: String,
prefix: String,
},
MissingRoot {
domain: String,
},
MissingSuffix {
domain: String,
},
TooLong {
domain: String,
},
TooLongLabel {
domain: String,
label: String,
},
UnknownSuffix {
domain: String,
suffix: String,
},
}Expand description
Errors representing invalid or malformed domain strings.
Variants§
Empty
The domain is empty.
EmptyLabel
The domain contains an empty label.
HasPrefix
The domain has a prefix when it shouldn’t (Root).
MissingRoot
The domain has no root.
MissingSuffix
The domain is missing a suffix.
This case seems to be unreachable with this psl implementation.
TooLong
The domain is too long.
TooLongLabel
The domain contains a too-long label.
UnknownSuffix
The domain has an unknown suffix.
Trait Implementations§
Source§impl Clone for DomainParseError
impl Clone for DomainParseError
Source§fn clone(&self) -> DomainParseError
fn clone(&self) -> DomainParseError
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 DomainParseError
impl Debug for DomainParseError
Source§impl Display for DomainParseError
impl Display for DomainParseError
impl Eq for DomainParseError
Source§impl Error for DomainParseError
impl Error for DomainParseError
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 From<DomainParseError> for DomainCreateError
impl From<DomainParseError> for DomainCreateError
Source§fn from(source: DomainParseError) -> Self
fn from(source: DomainParseError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for DomainParseError
impl PartialEq for DomainParseError
impl StructuralPartialEq for DomainParseError
Auto Trait Implementations§
impl Freeze for DomainParseError
impl RefUnwindSafe for DomainParseError
impl Send for DomainParseError
impl Sync for DomainParseError
impl Unpin for DomainParseError
impl UnsafeUnpin for DomainParseError
impl UnwindSafe for DomainParseError
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§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.