Enum uriparse::authority::InvalidHost
source · #[non_exhaustive]
pub enum InvalidHost {
AddressMechanismNotSupported,
InvalidIPv4OrRegisteredNameCharacter,
InvalidIPv6Format,
InvalidIPv6Character,
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"
).
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.
InvalidIPv6Character
The syntax for an IPv6 literal was used (i.e. "[...]"
), but it contained an invalid IPv6
character.
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 Clone for InvalidHost
impl Clone for InvalidHost
sourcefn clone(&self) -> InvalidHost
fn clone(&self) -> InvalidHost
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more