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_tsin_port: in_port_tPort number.
sin_addr: in_addrInternet address.
sin_zero: [c_uchar; 8]Pad to size of `struct sockaddr’.
Trait Implementations
sourceimpl Clone for sockaddr_in
impl Clone for sockaddr_in
sourcefn clone(&self) -> sockaddr_in
fn clone(&self) -> sockaddr_in
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for sockaddr_in
impl Debug for sockaddr_in
sourceimpl Default for sockaddr_in
impl Default for sockaddr_in
sourcefn default() -> sockaddr_in
fn default() -> sockaddr_in
Returns the “default value” for a type. Read more
sourceimpl Hash for sockaddr_in
impl Hash for sockaddr_in
sourceimpl Ord for sockaddr_in
impl Ord for sockaddr_in
sourceimpl PartialEq<sockaddr_in> for sockaddr_in
impl PartialEq<sockaddr_in> for sockaddr_in
sourcefn 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 ==. Read more
sourcefn ne(&self, other: &sockaddr_in) -> bool
fn ne(&self, other: &sockaddr_in) -> bool
This method tests for !=.
sourceimpl PartialOrd<sockaddr_in> for sockaddr_in
impl PartialOrd<sockaddr_in> for sockaddr_in
sourcefn partial_cmp(&self, other: &sockaddr_in) -> Option<Ordering>
fn partial_cmp(&self, other: &sockaddr_in) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · sourcefn 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
impl Copy for sockaddr_in
impl Eq for sockaddr_in
impl StructuralEq for sockaddr_in
impl StructuralPartialEq for sockaddr_in
Auto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more