#[repr(C, align(8))]pub struct sockaddr_storage {
pub family: sa_family_t,
pub data: [u8; 126],
}
Expand description
Represents the upper limit for the size of any sockaddr
value, across
all address families.
This is a reasonable default type to use when retrieving a socket address
from the kernel without knowledge of its address family. It is guaranteed
at least as large as the largest address type the kernel can return.
After the value is populated, use family
to convert to a more specific
address type.
Fields§
§family: sa_family_t
§data: [u8; 126]
Auto Trait Implementations§
impl Freeze for sockaddr_storage
impl RefUnwindSafe for sockaddr_storage
impl Send for sockaddr_storage
impl Sync for sockaddr_storage
impl Unpin for sockaddr_storage
impl UnwindSafe for sockaddr_storage
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