pub async fn resolve<A>(addr: A) -> Result<Vec<SocketAddr, Global>, Error> where
A: AsyncToSocketAddrs,
Expand description
Converts or resolves addresses to SocketAddr
values.
Examples
for addr in async_net::resolve("google.com:80").await? {
println!("{}", addr);
}