[src]

Enum std::io::net::ip::IpAddr

pub enum IpAddr {
    Ipv4Addr(u8, u8, u8, u8),
    Ipv6Addr(u16, u16, u16, u16, u16, u16, u16, u16),
}

Variants

Ipv4Addr
Ipv6Addr

Trait Implementations

impl Show for IpAddr

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

Formats the value using the given formatter.

impl FromStr for IpAddr

fn from_str(s: &str) -> Option<IpAddr>

Parses a string s to return an optional value of this type. If the string is ill-formatted, the None is returned.

Derived Implementations

impl<__S: Writer> Hash<__S> for IpAddr

fn hash(&self, __arg_0: &mut __S)

Compute a hash of the value.

impl Clone for IpAddr

fn clone(&self) -> IpAddr

Returns a copy of the value. The contents of owned pointers are copied to maintain uniqueness, while the contents of managed pointers are not copied.

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

Perform copy-assignment from source.

a.clone_from(&b) is equivalent to a = b.clone() in functionality, but can be overridden to reuse the resources of a to avoid unnecessary allocations.

impl TotalEq for IpAddr

fn assert_receiver_is_total_eq(&self)

impl Eq for IpAddr

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

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