Enum uriparse::authority::InvalidHost[][src]

pub enum InvalidHost {
    AddressMechanismNotSupported,
    InvalidIPv4OrRegisteredNameCharacter,
    InvalidIPv6Format,
    InvalidIPv6Character,
    InvalidIPvFutureCharacter,
}

An error representing an invalid host.

Variants

The syntax for a future IP literal was used and is not currently supported.

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").

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.

The syntax for an IPv6 literal was used (i.e. "[...]"), but it contained an invalid IPv6 character.

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]

Performs the conversion.

impl Clone for InvalidHost
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for InvalidHost
[src]

impl Debug for InvalidHost
[src]

Formats the value using the given formatter. Read more

impl Eq for InvalidHost
[src]

impl Hash for InvalidHost
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl PartialEq for InvalidHost
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Display for InvalidHost
[src]

Formats the value using the given formatter. Read more

impl Error for InvalidHost
[src]

This method is soft-deprecated. Read more

The lower-level cause of this error, if any. Read more

Auto Trait Implementations

impl Send for InvalidHost

impl Sync for InvalidHost