Struct windows::Win32::Networking::WinSock::SOCKADDR_IN
#[repr(C)]pub struct SOCKADDR_IN {
pub sin_family: ADDRESS_FAMILY,
pub sin_port: u16,
pub sin_addr: IN_ADDR,
pub sin_zero: [i8; 8],
}
Fields§
§sin_family: ADDRESS_FAMILY
§sin_port: u16
§sin_addr: IN_ADDR
§sin_zero: [i8; 8]
Trait Implementations§
§impl Clone for SOCKADDR_IN
impl Clone for SOCKADDR_IN
§fn clone(&self) -> SOCKADDR_IN
fn clone(&self) -> SOCKADDR_IN
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 From<SocketAddrV4> for SOCKADDR_IN
impl From<SocketAddrV4> for SOCKADDR_IN
§fn from(addr: SocketAddrV4) -> Self
fn from(addr: SocketAddrV4) -> Self
Converts to this type from the input type.
impl Copy for SOCKADDR_IN
Auto Trait Implementations§
impl Freeze for SOCKADDR_IN
impl RefUnwindSafe for SOCKADDR_IN
impl Send for SOCKADDR_IN
impl Sync for SOCKADDR_IN
impl Unpin for SOCKADDR_IN
impl UnwindSafe for SOCKADDR_IN
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
)