Enum resolv_conf::ScopedIp
[−]
[src]
pub enum ScopedIp { V4(Ipv4Addr), V6(Ipv6Addr, Option<String>), }
Represent an IP address. This type is similar to std::net::IpAddr
but it supports IPv6 scope
identifiers.
Variants
V4(Ipv4Addr)
Represent an IPv4 address
V6(Ipv6Addr, Option<String>)
Represent an IPv6 and its scope identifier, if any
Trait Implementations
impl Debug for ScopedIp
[src]
impl Clone for ScopedIp
[src]
fn clone(&self) -> ScopedIp
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq for ScopedIp
[src]
fn eq(&self, __arg_0: &ScopedIp) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ScopedIp) -> bool
[src]
This method tests for !=
.
impl Eq for ScopedIp
[src]
impl Into<IpAddr> for ScopedIp
[src]
impl<'a> Into<IpAddr> for &'a ScopedIp
[src]
impl From<Ipv6Addr> for ScopedIp
[src]
impl From<Ipv4Addr> for ScopedIp
[src]
impl From<IpAddr> for ScopedIp
[src]
impl FromStr for ScopedIp
[src]
type Err = AddrParseError
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<ScopedIp, AddrParseError>
[src]
Parse a string representing an IP address.