Enum resolv_conf::ScopedIp
source · pub enum ScopedIp {
V4(Ipv4Addr),
V6(Ipv6Addr, Option<String>),
}
Expand description
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§
source§impl FromStr for ScopedIp
impl FromStr for ScopedIp
source§fn from_str(s: &str) -> Result<ScopedIp, AddrParseError>
fn from_str(s: &str) -> Result<ScopedIp, AddrParseError>
Parse a string representing an IP address.
§type Err = AddrParseError
type Err = AddrParseError
The associated error which can be returned from parsing.
source§impl PartialEq<ScopedIp> for ScopedIp
impl PartialEq<ScopedIp> for ScopedIp
impl Eq for ScopedIp
impl StructuralEq for ScopedIp
impl StructuralPartialEq for ScopedIp
Auto Trait Implementations§
impl RefUnwindSafe for ScopedIp
impl Send for ScopedIp
impl Sync for ScopedIp
impl Unpin for ScopedIp
impl UnwindSafe for ScopedIp
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more