[−][src]Trait async_net::AsyncToSocketAddrs
Converts or resolves addresses to SocketAddr values.
This trait currently only appears in function signatures and cannot be used directly. However,
you can still use the ToSocketAddrs trait from the standard library.
Examples
To perform a DNS lookup for an address, make ToSocketAddrs async by wrapping it with the
blocking crate:
use blocking::unblock; use std::net::ToSocketAddrs; let addrs = unblock!("google.com".to_socket_addrs())?;