[][src]Function smol::net::resolve

pub async fn resolve<A>(addr: A) -> Result<Vec<SocketAddr>, Error> where
    A: AsyncToSocketAddrs

Converts or resolves addresses to SocketAddr values.

Examples

for addr in async_net::resolve("google.com:80").await? {
    println!("{}", addr);
}