pub enum InetAddr {
V4(sockaddr_in),
V6(sockaddr_in6),
}
👎Deprecated since 0.24.0: use SockaddrIn, SockaddrIn6, or SockaddrStorage instead
Variants§
V4(sockaddr_in)
👎Deprecated since 0.24.0: use SockaddrIn, SockaddrIn6, or SockaddrStorage instead
V6(sockaddr_in6)
👎Deprecated since 0.24.0: use SockaddrIn, SockaddrIn6, or SockaddrStorage instead
Implementations§
Trait Implementations§
impl Copy for InetAddr
impl Eq for InetAddr
impl StructuralPartialEq for InetAddr
Auto Trait Implementations§
impl Freeze for InetAddr
impl RefUnwindSafe for InetAddr
impl Send for InetAddr
impl Sync for InetAddr
impl Unpin for InetAddr
impl UnwindSafe for InetAddr
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
)