Enum mio::IpAddr [] [src]

pub enum IpAddr {
    V4(Ipv4Addr),
    V6(Ipv6Addr),
}

An IP address, either a IPv4 or IPv6 address.

Once std::net::IpAddr is stable, this will go away.

Variants

V4
V6

Trait Implementations

impl FromStr for IpAddr

type Err = AddrParseError

fn from_str(s: &str) -> Result<IpAddr, AddrParseError>