Struct nc::types::sockaddr_in_t
source · #[repr(C)]pub struct sockaddr_in_t {
pub sin_family: sa_family_t,
pub sin_port: be16_t,
pub sin_addr: in_addr_t,
pub pad: [u8; 8],
}
Fields§
§sin_family: sa_family_t
Address family
sin_port: be16_t
Port number
sin_addr: in_addr_t
Internet address
pad: [u8; 8]
Pad to size of `struct sockaddr’.
Trait Implementations§
source§impl Clone for sockaddr_in_t
impl Clone for sockaddr_in_t
source§fn clone(&self) -> sockaddr_in_t
fn clone(&self) -> sockaddr_in_t
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_t
impl Debug for sockaddr_in_t
source§impl Default for sockaddr_in_t
impl Default for sockaddr_in_t
source§fn default() -> sockaddr_in_t
fn default() -> sockaddr_in_t
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for sockaddr_in_t
impl RefUnwindSafe for sockaddr_in_t
impl Send for sockaddr_in_t
impl Sync for sockaddr_in_t
impl Unpin for sockaddr_in_t
impl UnwindSafe for sockaddr_in_t
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