Enum resolv_conf::ScopedIp [−][src]
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 Debug for ScopedIp
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for ScopedIp
[src]
impl Clone for ScopedIp
fn clone(&self) -> ScopedIp
[src]
fn clone(&self) -> ScopedIp
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl PartialEq for ScopedIp
[src]
impl PartialEq for ScopedIp
fn eq(&self, other: &ScopedIp) -> bool
[src]
fn eq(&self, other: &ScopedIp) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &ScopedIp) -> bool
[src]
fn ne(&self, other: &ScopedIp) -> bool
This method tests for !=
.
impl Eq for ScopedIp
[src]
impl Eq for ScopedIp
impl Into<IpAddr> for ScopedIp
[src]
impl Into<IpAddr> for ScopedIp
impl<'a> Into<IpAddr> for &'a ScopedIp
[src]
impl<'a> Into<IpAddr> for &'a ScopedIp
impl From<Ipv6Addr> for ScopedIp
[src]
impl From<Ipv6Addr> for ScopedIp
impl From<Ipv4Addr> for ScopedIp
[src]
impl From<Ipv4Addr> for ScopedIp
impl From<IpAddr> for ScopedIp
[src]
impl From<IpAddr> for ScopedIp
impl FromStr for ScopedIp
[src]
impl FromStr for ScopedIp
type Err = AddrParseError
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<ScopedIp, AddrParseError>
[src]
fn from_str(s: &str) -> Result<ScopedIp, AddrParseError>
Parse a string representing an IP address.
impl Display for ScopedIp
[src]
impl Display for ScopedIp