Struct nc::types::sockaddr_t
source · #[repr(C)]pub struct sockaddr_t {
pub sa_family: sa_family_t,
pub sa_data: [u8; 14],
}
Expand description
1003.1g requires sa_family_t
and that sa_data
is char.
Fields§
§sa_family: sa_family_t
address family, AF_xxx
sa_data: [u8; 14]
14 bytes of protocol address
Trait Implementations§
source§impl Clone for sockaddr_t
impl Clone for sockaddr_t
source§fn clone(&self) -> sockaddr_t
fn clone(&self) -> sockaddr_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_t
impl Debug for sockaddr_t
source§impl Default for sockaddr_t
impl Default for sockaddr_t
source§fn default() -> sockaddr_t
fn default() -> sockaddr_t
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for sockaddr_t
impl RefUnwindSafe for sockaddr_t
impl Send for sockaddr_t
impl Sync for sockaddr_t
impl Unpin for sockaddr_t
impl UnwindSafe for sockaddr_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