Skip to main content

lookup_host

Function lookup_host 

Source
pub async fn lookup_host(host: &str, port: u16) -> Result<Vec<SocketAddr>>
Expand description

Resolves a host name on a blocking thread pool, so a slow DNS server does not block the executor.