pub trait Resolve {
    type Addrs: Iterator<Item = IpAddr>;
    type Future: Future<Item = Self::Addrs, Error = Error>;
    fn resolve(&self, name: Name) -> Self::Future;
}
Expand description

Resolve a hostname to a set of IP addresses.

Associated Types

The set of IP addresses to try to connect to.

A Future of the resolved set of addresses.

Required methods

Resolve a hostname.

Implementors