pub enum HostParseError {
EmptyLabel,
EndsWithHyphen,
EndsWithPeriod,
InvalidLabel,
LargeLabel,
LargeName,
StartsWithHyphen,
StartsWithPeriod,
}
Variants§
EmptyLabel
EndsWithHyphen
EndsWithPeriod
InvalidLabel
LargeLabel
LargeName
StartsWithHyphen
StartsWithPeriod
Implementations§
Source§impl HostParseError
impl HostParseError
Sourcepub const fn into_static_str(self) -> &'static str
pub const fn into_static_str(self) -> &'static str
Returns a static str
describing the error
Trait Implementations§
Source§impl Clone for HostParseError
impl Clone for HostParseError
Source§fn clone(&self) -> HostParseError
fn clone(&self) -> HostParseError
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 Debug for HostParseError
impl Debug for HostParseError
Source§impl Display for HostParseError
impl Display for HostParseError
Source§impl Error for HostParseError
impl Error for HostParseError
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 HostParseError
impl Hash for HostParseError
Source§impl PartialEq for HostParseError
impl PartialEq for HostParseError
impl Copy for HostParseError
impl Eq for HostParseError
impl StructuralPartialEq for HostParseError
Auto Trait Implementations§
impl Freeze for HostParseError
impl RefUnwindSafe for HostParseError
impl Send for HostParseError
impl Sync for HostParseError
impl Unpin for HostParseError
impl UnwindSafe for HostParseError
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