Trait tokio_dns::Resolver[][src]

pub trait Resolver {
    fn resolve(&self, host: &str) -> IoFuture<Vec<IpAddr>>;
}

The Resolver trait represents an object capable of resolving host names into IP addresses.

Required Methods

Given a host name, this function returns a Future which will eventually produce a list of IP addresses.

Implementors