pub struct SockAddr {
pub storage: sockaddr_storage,
pub len: socklen_t,
}Expand description
Socket address storage for connection operations 连接操作的套接字地址存储
Fields§
§storage: sockaddr_storageThe raw socket address / 原始套接字地址
len: socklen_tLength of the address / 地址长度
Implementations§
Trait Implementations§
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