#[repr(C)]pub struct sockaddr_in {
pub sin_len: u8,
pub sin_family: u8,
pub sin_port: u16,
pub sin_addr: in_addr,
pub sin_zero: [u8; 8],
}
Expand description
A structure like Linux’s sockaddr_in
Fields§
§sin_len: u8
§sin_family: u8
§sin_port: u16
§sin_addr: in_addr
§sin_zero: [u8; 8]
Trait Implementations§
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