Searched refs:InetVersion (Results 1 – 2 of 2) sorted by relevance
/external/libchromeos-rs/src/ |
D | net.rs | 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() [all …]
|
/external/crosvm/sys_util/src/ |
D | net.rs | 31 pub enum InetVersion { enum 36 impl InetVersion { implementation 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() [all …]
|