Struct libnotcurses_sys::c_api::ffi::sockaddr_in
source · #[repr(C)]pub struct sockaddr_in {
pub sin_family: sa_family_t,
pub sin_port: in_port_t,
pub sin_addr: in_addr,
pub sin_zero: [c_uchar; 8],
}Expand description
Structure describing an Internet socket address.
Fields§
§sin_family: sa_family_t§sin_port: in_port_tPort number.
sin_addr: in_addrInternet address.
sin_zero: [c_uchar; 8]Pad to size of `struct sockaddr’.
Trait Implementations§
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 Default for sockaddr_in
impl Default for sockaddr_in
source§fn default() -> sockaddr_in
fn default() -> sockaddr_in
Returns the “default value” for a type. Read more
source§impl Hash for sockaddr_in
impl Hash for sockaddr_in
source§impl Ord for sockaddr_in
impl Ord for sockaddr_in
source§fn cmp(&self, other: &sockaddr_in) -> Ordering
fn cmp(&self, other: &sockaddr_in) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<sockaddr_in> for sockaddr_in
impl PartialEq<sockaddr_in> for sockaddr_in
source§fn eq(&self, other: &sockaddr_in) -> bool
fn eq(&self, other: &sockaddr_in) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd<sockaddr_in> for sockaddr_in
impl PartialOrd<sockaddr_in> for sockaddr_in
source§fn partial_cmp(&self, other: &sockaddr_in) -> Option<Ordering>
fn partial_cmp(&self, other: &sockaddr_in) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read more