#[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 duplicate 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 for sockaddr_in
impl PartialEq for sockaddr_in
Source§impl PartialOrd for sockaddr_in
impl PartialOrd 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