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.
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.