pub struct sockaddr_storage {
pub ss_family: sa_family_t,
/* private fields */
}Expand description
See https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/sys_socket.h.html. Opaque storage large enough to hold any protocol specific address structure.
§Implementation notes
- The total size of this struct is 128 bytes which is based off of
muslandglibc - The underscore fields are implementation specific details for padding that may change
usizeis used because it’s the width of a pointer for a given platform- The order of the fields is important because the bytes in the padding will be cast to and from protocol structs in C
cbindgen:ignore
Fields§
§ss_family: sa_family_tAddress family.
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 UnsafeUnpin 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