#[repr(C)]pub struct SockAddrIn {
pub sin_family: u16,
pub sin_port: u16,
pub sin_addr: InAddr,
pub sin_zero: [u8; 8],
}Fields§
§sin_family: u16§sin_port: u16§sin_addr: InAddr§sin_zero: [u8; 8]Trait Implementations§
Source§impl Clone for SockAddrIn
impl Clone for SockAddrIn
Source§fn clone(&self) -> SockAddrIn
fn clone(&self) -> SockAddrIn
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SockAddrIn
Source§impl SocketAddressBuffer for SockAddrIn
impl SocketAddressBuffer for SockAddrIn
type RawSockAddr = SockAddrIn
fn as_raw_ptr(&self) -> *const Self::RawSockAddr
fn as_raw_mut_ptr(&mut self) -> *mut Self::RawSockAddr
fn as_raw(&self) -> &Self::RawSockAddr
fn as_ptr(&self) -> *const u8
fn as_mut_ptr(&mut self) -> *mut u8
fn len(&self) -> usize
Source§impl ToIpv4Addr for SockAddrIn
impl ToIpv4Addr for SockAddrIn
fn to_ipv4_addr(&self) -> Ipv4Addr
fn to_socket_addr_v4(&self) -> SocketAddrV4
Auto Trait Implementations§
impl Freeze for SockAddrIn
impl RefUnwindSafe for SockAddrIn
impl Send for SockAddrIn
impl Sync for SockAddrIn
impl Unpin for SockAddrIn
impl UnsafeUnpin for SockAddrIn
impl UnwindSafe for SockAddrIn
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