Lines Matching refs:SocketAddr
461 pub fn from_std(std: &net::SocketAddr) -> InetAddr {
463 net::SocketAddr::V4(ref addr) => {
476 net::SocketAddr::V6(ref addr) => {
531 pub fn to_std(&self) -> net::SocketAddr {
533 InetAddr::V4(ref sa) => net::SocketAddr::V4(
537 InetAddr::V6(ref sa) => net::SocketAddr::V6(
1871 impl From<net::SocketAddr> for SockaddrStorage {
1872 fn from(s: net::SocketAddr) -> Self {
1874 net::SocketAddr::V4(sa4) => Self::from(sa4),
1875 net::SocketAddr::V6(sa6) => Self::from(sa6),