[][src]Trait hyper::client::connect::dns::Resolve

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

Resolve a hostname to a set of IP addresses.

Associated Types

type Addrs: Iterator<Item = IpAddr>

The set of IP addresses to try to connect to.

type Future: Future<Item = Self::Addrs, Error = Error>

A Future of the resolved set of addresses.

Loading content...

Required methods

fn resolve(&self, name: Name) -> Self::Future

Resolve a hostname.

Loading content...

Implementors

impl Resolve for GaiResolver[src]

type Addrs = GaiAddrs

type Future = GaiFuture

impl Resolve for TokioThreadpoolGaiResolver[src]

Loading content...