Home
last modified time | relevance | path

Searched refs:to_std (Results 1 - 2 of 2) sorted by relevance

/third_party/rust/crates/nix/src/sys/socket/
H A Daddr.rs531 pub fn to_std(&self) -> net::SocketAddr { in to_std() functions
535 Ipv4Addr(sa.sin_addr).to_std(), in to_std()
539 Ipv6Addr(sa.sin6_addr).to_std(), in to_std()
605 pub const fn to_std(&self) -> net::IpAddr {
607 IpAddr::V4(ref ip) => net::IpAddr::V4(ip.to_std()),
608 IpAddr::V6(ref ip) => net::IpAddr::V6(ip.to_std()),
667 pub const fn to_std(self) -> net::Ipv4Addr {
731 pub const fn to_std(&self) -> net::Ipv6Addr {
740 self.to_std().fmt(fmt) in fmt()
/third_party/rust/crates/nix/test/sys/
H A Dtest_socket.rs38 let inet = addr.to_std(); in test_inetv4_addr_to_sock_addr()

Completed in 7 milliseconds