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§
impl Eq for ScopedIp
impl StructuralPartialEq for ScopedIp
Auto Trait Implementations§
impl Freeze for ScopedIp
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)