Enum nix::sys::socket::IpAddr [] [src]

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

Variants

Methods

impl IpAddr
[src]

Create a new IpAddr that contains an IPv4 address.

The result will represent the IP address a.b.c.d

Create a new IpAddr that contains an IPv6 address.

The result will represent the IP address a:b:c:d:e:f

Trait Implementations

impl Display for IpAddr
[src]

Formats the value using the given formatter. Read more