Lines Matching refs:InetVersion
18 pub enum InetVersion { enum
23 impl InetVersion { implementation
26 SocketAddr::V4(_) => InetVersion::V4, in from_sockaddr()
27 SocketAddr::V6(_) => InetVersion::V6, in from_sockaddr()
32 impl Into<sa_family_t> for InetVersion { implementation
35 InetVersion::V4 => AF_INET as sa_family_t, in into()
36 InetVersion::V6 => AF_INET6 as sa_family_t, in into()
71 inet_version: InetVersion,
76 pub fn new(inet_version: InetVersion) -> io::Result<Self> { in new()
188 InetVersion::V4 => { in local_port()
216 InetVersion::V6 => { in local_port()