Lines Matching refs:InetVersion
31 pub enum InetVersion { enum
36 impl InetVersion { impl
39 SocketAddr::V4(_) => InetVersion::V4, in from_sockaddr()
40 SocketAddr::V6(_) => InetVersion::V6, in from_sockaddr()
45 impl From<InetVersion> for sa_family_t {
46 fn from(v: InetVersion) -> sa_family_t { in from()
48 InetVersion::V4 => AF_INET as sa_family_t, in from()
49 InetVersion::V6 => AF_INET6 as sa_family_t, in from()
84 inet_version: InetVersion,
89 pub fn new(inet_version: InetVersion) -> io::Result<Self> { in new()
201 InetVersion::V4 => { in local_port()
229 InetVersion::V6 => { in local_port()