Enum resolv_conf::IpAddr []

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

An IP address, either an IPv4 or IPv6 address.

Variants

V4(Ipv4Addr)

Representation of an IPv4 address.

V6(Ipv6Addr)

Representation of an IPv6 address.

Trait Implementations

impl Ord for IpAddr

fn cmp(&self, __arg_0: &IpAddr) -> Ordering

impl PartialOrd<IpAddr> for IpAddr

fn partial_cmp(&self, __arg_0: &IpAddr) -> Option<Ordering>

fn lt(&self, __arg_0: &IpAddr) -> bool

fn le(&self, __arg_0: &IpAddr) -> bool

fn gt(&self, __arg_0: &IpAddr) -> bool

fn ge(&self, __arg_0: &IpAddr) -> bool

impl Hash for IpAddr

fn hash<__H>(&self, __arg_0: &mut __H) where __H: Hasher

impl Debug for IpAddr

fn fmt(&self, __arg_0: &mut Formatter) -> Result<()Error>

Formats the value using the given formatter.

impl PartialEq<IpAddr> for IpAddr

fn eq(&self, __arg_0: &IpAddr) -> bool

fn ne(&self, __arg_0: &IpAddr) -> bool

impl Eq for IpAddr

impl Clone for IpAddr

fn clone(&self) -> IpAddr

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Copy for IpAddr

impl Display for IpAddr

fn fmt(&self, fmt: &mut Formatter) -> Result<()Error>

Formats the value using the given formatter.

impl FromStr for IpAddr