Searched refs:AddressFamily (Results 1 – 2 of 2) sorted by relevance
14 net::socket::{AddressFamily, SOL_SOCKET},44 let address_family = AddressFamily::try_from(address_family as u16)?; in do_socket()49 AddressFamily::Unix | AddressFamily::INet => match socket_type { in do_socket()689 match AddressFamily::try_from(addr.family)? { in to_endpoint()690 AddressFamily::INet => { in to_endpoint()700 AddressFamily::Packet => { in to_endpoint()704 AddressFamily::Netlink => { in to_endpoint()708 AddressFamily::Unix => { in to_endpoint()720 let ret = match AddressFamily::try_from(unsafe { self.family })? { in len()721 AddressFamily::INet => Ok(core::mem::size_of::<SockAddrIn>()), in len()[all …]
860 pub enum AddressFamily { enum959 impl TryFrom<u16> for AddressFamily { implementation