Enum resolv_conf::ScopedIp
source · [−]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
sourceimpl FromStr for ScopedIp
impl FromStr for ScopedIp
sourcefn 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.
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more