#[repr(C)]pub struct sockaddr_in {
pub sin_len: u8,
pub sin_family: sa_family_t,
pub sin_port: in_port_t,
pub sin_addr: in_addr,
pub sin_zero: [c_char; 8],
}
Fields§
§sin_len: u8
§sin_family: sa_family_t
§sin_port: in_port_t
§sin_addr: in_addr
§sin_zero: [c_char; 8]
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 From<Endpoint> for sockaddr_in
impl From<Endpoint> for sockaddr_in
Source§fn from(endpoint: IpEndpoint) -> Self
fn from(endpoint: IpEndpoint) -> Self
Converts to this type from the input type.
Source§impl From<sockaddr_in> for IpEndpoint
impl From<sockaddr_in> for IpEndpoint
Source§fn from(addr: sockaddr_in) -> IpEndpoint
fn from(addr: sockaddr_in) -> IpEndpoint
Converts to this type from the input type.
Source§impl From<sockaddr_in> for IpListenEndpoint
impl From<sockaddr_in> for IpListenEndpoint
Source§fn from(addr: sockaddr_in) -> IpListenEndpoint
fn from(addr: sockaddr_in) -> IpListenEndpoint
Converts to this type from the input type.
impl Copy 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