Trait tokio_dns::Resolver [] [src]

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

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

Required Methods

fn resolve(&self, host: &str) -> BoxFuture<Vec<IpAddr>, Error>

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

Implementors