#[non_exhaustive]
pub enum HostError {
AddressMechanismNotSupported,
InvalidIPv4OrRegisteredNameCharacter,
InvalidIPv6Character,
InvalidIPv6Format,
InvalidIPvFutureCharacter,
}
Expand description
An error representing an invalid host.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
AddressMechanismNotSupported
The syntax for a future IP literal was used and is not currently supported.
InvalidIPv4OrRegisteredNameCharacter
An invalid character for an IPv4 address or registered name was used. Due to the ambiguity
of the grammar, it is not possible to say which. It is also possible that all the characters
were valid, but there was an invalid percent encoding (e.g. "%ZZ"
).
InvalidIPv6Character
The syntax for an IPv6 literal was used (i.e. "[...]"
), but it contained an invalid IPv6
character.
InvalidIPv6Format
The syntax for an IPv6 literal was used (i.e. "[...]"
) and all of the characters were
valid IPv6 characters. However, the format of the literal was invalid.
InvalidIPvFutureCharacter
The syntax for a future IP literal was used (i.e. "[v*...]"
where "*"
is a hexadecimal
digit), but it contained an invalid character.
Trait Implementations
sourceimpl Error for HostError
impl Error for HostError
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
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
sourceimpl From<HostError> for AuthorityError
impl From<HostError> for AuthorityError
sourceimpl From<Infallible> for HostError
impl From<Infallible> for HostError
sourcefn from(_: Infallible) -> Self
fn from(_: Infallible) -> Self
Performs the conversion.
impl Copy for HostError
impl Eq for HostError
impl StructuralEq for HostError
impl StructuralPartialEq for HostError
Auto Trait Implementations
impl RefUnwindSafe for HostError
impl Send for HostError
impl Sync for HostError
impl Unpin for HostError
impl UnwindSafe for HostError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more