Enum uriparse::authority::InvalidHost [−][src]
pub enum InvalidHost { AddressMechanismNotSupported, InvalidIPv4OrRegisteredNameCharacter, InvalidIPv6Format, InvalidIPv6Character, InvalidIPvFutureCharacter, }
An error representing an invalid host.
Variants
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
impl From<InvalidHost> for InvalidAuthority
[src]
impl From<InvalidHost> for InvalidAuthority
fn from(value: InvalidHost) -> Self
[src]
fn from(value: InvalidHost) -> Self
Performs the conversion.
impl Clone for InvalidHost
[src]
impl Clone for InvalidHost
fn clone(&self) -> InvalidHost
[src]
fn clone(&self) -> InvalidHost
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Copy for InvalidHost
[src]
impl Copy for InvalidHost
impl Debug for InvalidHost
[src]
impl Debug for InvalidHost
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Eq for InvalidHost
[src]
impl Eq for InvalidHost
impl Hash for InvalidHost
[src]
impl Hash for InvalidHost
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl PartialEq for InvalidHost
[src]
impl PartialEq for InvalidHost
fn eq(&self, other: &InvalidHost) -> bool
[src]
fn eq(&self, other: &InvalidHost) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
impl Display for InvalidHost
[src]
impl Display for InvalidHost
fn fmt(&self, formatter: &mut Formatter) -> Result
[src]
fn fmt(&self, formatter: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Error for InvalidHost
[src]
impl Error for InvalidHost
Auto Trait Implementations
impl Send for InvalidHost
impl Send for InvalidHost
impl Sync for InvalidHost
impl Sync for InvalidHost