Struct libc::unix::linux_like::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: [u8; 8],
}
Fields§
§sin_family: sa_family_t
§sin_port: in_port_t
§sin_addr: in_addr
§sin_zero: [u8; 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 moreimpl Copy 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§
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