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 ScopedIpfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Clone for ScopedIp[src]
impl Clone for ScopedIpfn clone(&self) -> ScopedIp[src]
fn clone(&self) -> ScopedIpReturns 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 ScopedIpfn eq(&self, other: &ScopedIp) -> bool[src]
fn eq(&self, other: &ScopedIp) -> boolThis 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) -> boolThis method tests for !=.
impl Eq for ScopedIp[src]
impl Eq for ScopedIpimpl Into<IpAddr> for ScopedIp[src]
impl Into<IpAddr> for ScopedIpimpl<'a> Into<IpAddr> for &'a ScopedIp[src]
impl<'a> Into<IpAddr> for &'a ScopedIpimpl From<Ipv6Addr> for ScopedIp[src]
impl From<Ipv6Addr> for ScopedIpimpl From<Ipv4Addr> for ScopedIp[src]
impl From<Ipv4Addr> for ScopedIpimpl From<IpAddr> for ScopedIp[src]
impl From<IpAddr> for ScopedIpimpl FromStr for ScopedIp[src]
impl FromStr for ScopedIptype 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