#[repr(C)]pub struct sockaddr {
pub sa_family: sa_family_t,
pub sa_data: [c_char; 14],
}Expand description
Structure describing a generic socket address.
Fields§
§sa_family: sa_family_tCommon data: address family and length.
sa_data: [c_char; 14]Address data.
Trait Implementations§
impl Copy for sockaddr
impl Eq for sockaddr
Source§impl Ord for sockaddr
impl Ord for sockaddr
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for sockaddr
impl PartialOrd for sockaddr
impl StructuralPartialEq for sockaddr
Auto Trait Implementations§
impl Freeze for sockaddr
impl RefUnwindSafe for sockaddr
impl Send for sockaddr
impl Sync for sockaddr
impl Unpin for sockaddr
impl UnsafeUnpin for sockaddr
impl UnwindSafe for sockaddr
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