IHost

Type Alias IHost 

Source
pub type IHost<'a> = Host<'a, IRegName>;
Expand description

A parsed host component for IRI.

Aliased Type§

pub enum IHost<'a> {
    Ipv4(Ipv4Addr),
    Ipv6(Ipv6Addr),
#[non_exhaustive]
IpvFuture, RegName(&'a EStr<IRegName>), }

Variants§

§

Ipv4(Ipv4Addr)

An IPv4 address.

Tuple Fields

§0: Ipv4Addr
Available on crate feature net only.

The address.

§

Ipv6(Ipv6Addr)

An IPv6 address.

Tuple Fields

§0: Ipv6Addr
Available on crate feature net only.

The address.

§

#[non_exhaustive]
IpvFuture

An IP address of future version.

This variant is marked as non-exhaustive because the API design for IPvFuture addresses is to be determined.

§

RegName(&'a EStr<IRegName>)

A registered name.

Note that ASCII characters within a registered name are case-insensitive.