Enum distant_net::common::HostParseError
source · pub enum HostParseError {
EmptyLabel,
EndsWithHyphen,
EndsWithPeriod,
InvalidLabel,
LargeLabel,
LargeName,
StartsWithHyphen,
StartsWithPeriod,
}Variants
EmptyLabel
EndsWithHyphen
EndsWithPeriod
InvalidLabel
LargeLabel
LargeName
StartsWithHyphen
StartsWithPeriod
Implementations
sourceimpl 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
sourceimpl Clone for HostParseError
impl Clone for HostParseError
sourcefn clone(&self) -> HostParseError
fn clone(&self) -> HostParseError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for HostParseError
impl Debug for HostParseError
sourceimpl Display for HostParseError
impl Display for HostParseError
sourceimpl Error for HostParseError
impl Error for HostParseError
1.30.0 · sourcefn 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 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
sourceimpl Hash for HostParseError
impl Hash for HostParseError
sourceimpl PartialEq<HostParseError> for HostParseError
impl PartialEq<HostParseError> for HostParseError
sourcefn eq(&self, other: &HostParseError) -> bool
fn eq(&self, other: &HostParseError) -> bool
impl Copy for HostParseError
impl Eq for HostParseError
impl StructuralEq for HostParseError
impl StructuralPartialEq for HostParseError
Auto Trait Implementations
impl RefUnwindSafe for HostParseError
impl Send for HostParseError
impl Sync for HostParseError
impl Unpin for HostParseError
impl UnwindSafe for HostParseError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more