[][src]Enum uriparse::authority::HostError

#[non_exhaustive]pub enum HostError {
    AddressMechanismNotSupported,
    InvalidIPv4OrRegisteredNameCharacter,
    InvalidIPv6Character,
    InvalidIPv6Format,
    InvalidIPvFutureCharacter,
}

An error representing an invalid host.

Variants (Non-exhaustive)

Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future 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").

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

impl Clone for HostError[src]

impl Copy for HostError[src]

impl Debug for HostError[src]

impl Display for HostError[src]

impl Eq for HostError[src]

impl Error for HostError[src]

impl From<HostError> for AuthorityError[src]

impl From<Infallible> for HostError[src]

impl Hash for HostError[src]

impl PartialEq<HostError> for HostError[src]

impl StructuralEq for HostError[src]

impl StructuralPartialEq for HostError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.