Enum resolv_conf::ScopedIp [] [src]

pub enum ScopedIp {
    V4(Ipv4Addr),
    V6(Ipv6AddrOption<String>),
}

Represent an IP address. This type is similar to std::net::IpAddr but it supports IPv6 scope identifiers.

Variants

Represent an IPv4 address

Represent an IPv6 and its scope identifier, if any

Trait Implementations

impl Debug for ScopedIp
[src]

[src]

Formats the value using the given formatter.

impl Clone for ScopedIp
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for ScopedIp
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Eq for ScopedIp
[src]

impl Into<IpAddr> for ScopedIp
[src]

[src]

Performs the conversion.

impl<'a> Into<IpAddr> for &'a ScopedIp
[src]

[src]

Performs the conversion.

impl From<Ipv6Addr> for ScopedIp
[src]

[src]

Performs the conversion.

impl From<Ipv4Addr> for ScopedIp
[src]

[src]

Performs the conversion.

impl From<IpAddr> for ScopedIp
[src]

[src]

Performs the conversion.

impl FromStr for ScopedIp
[src]

The associated error which can be returned from parsing.

[src]

Parse a string representing an IP address.