Union windows::Win32::Networking::WinSock::SOCKADDR_INET
#[repr(C)]
pub union SOCKADDR_INET {
pub Ipv4: SOCKADDR_IN,
pub Ipv6: SOCKADDR_IN6,
pub si_family: ADDRESS_FAMILY,
}
Fields§
§Ipv4: SOCKADDR_IN
§Ipv6: SOCKADDR_IN6
§si_family: ADDRESS_FAMILY
Trait Implementations§
§impl Clone for SOCKADDR_INET
impl Clone for SOCKADDR_INET
§fn clone(&self) -> SOCKADDR_INET
fn clone(&self) -> SOCKADDR_INET
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Default for SOCKADDR_INET
impl Default for SOCKADDR_INET
§impl From<SocketAddr> for SOCKADDR_INET
impl From<SocketAddr> for SOCKADDR_INET
§fn from(addr: SocketAddr) -> Self
fn from(addr: SocketAddr) -> Self
Converts to this type from the input type.
§impl From<SocketAddrV4> for SOCKADDR_INET
impl From<SocketAddrV4> for SOCKADDR_INET
§fn from(addr: SocketAddrV4) -> Self
fn from(addr: SocketAddrV4) -> Self
Converts to this type from the input type.
§impl From<SocketAddrV6> for SOCKADDR_INET
impl From<SocketAddrV6> for SOCKADDR_INET
§fn from(addr: SocketAddrV6) -> Self
fn from(addr: SocketAddrV6) -> Self
Converts to this type from the input type.
impl Copy for SOCKADDR_INET
Auto Trait Implementations§
impl Freeze for SOCKADDR_INET
impl RefUnwindSafe for SOCKADDR_INET
impl Send for SOCKADDR_INET
impl Sync for SOCKADDR_INET
impl Unpin for SOCKADDR_INET
impl UnwindSafe for SOCKADDR_INET
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
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
)