Struct nix::sys::socket::sockaddr_in
source · #[repr(C)]pub struct sockaddr_in {
pub sin_family: u16,
pub sin_port: u16,
pub sin_addr: in_addr,
pub sin_zero: [u8; 8],
}
Fields§
§sin_family: u16
§sin_port: u16
§sin_addr: in_addr
§sin_zero: [u8; 8]
Trait Implementations§
source§impl AsRef<sockaddr_in> for SockaddrIn
impl AsRef<sockaddr_in> for SockaddrIn
source§fn as_ref(&self) -> &sockaddr_in
fn as_ref(&self) -> &sockaddr_in
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Clone for sockaddr_in
impl Clone for sockaddr_in
source§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 moresource§impl Debug for sockaddr_in
impl Debug for sockaddr_in
source§impl From<SockaddrIn> for sockaddr_in
impl From<SockaddrIn> for sockaddr_in
source§fn from(sin: SockaddrIn) -> sockaddr_in
fn from(sin: SockaddrIn) -> sockaddr_in
Converts to this type from the input type.
source§impl From<sockaddr_in> for SockaddrIn
impl From<sockaddr_in> for SockaddrIn
source§fn from(sin: sockaddr_in) -> SockaddrIn
fn from(sin: sockaddr_in) -> SockaddrIn
Converts to this type from the input type.
source§impl Hash for sockaddr_in
impl Hash for sockaddr_in
source§impl PartialEq for sockaddr_in
impl PartialEq for sockaddr_in
impl Copy for sockaddr_in
impl Eq for sockaddr_in
impl StructuralPartialEq 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§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
)