pub trait LookupProxyInterface: Send + Sync {
type LookupIpResponseFut: Future<Output = Result<LookupLookupIpResult, Error>> + Send;
type LookupHostnameResponseFut: Future<Output = Result<LookupLookupHostnameResult, Error>> + Send;
// Required methods
fn lookup_ip(
&self,
hostname: &str,
options: &LookupIpOptions,
) -> Self::LookupIpResponseFut;
fn lookup_hostname(
&self,
addr: &IpAddress,
) -> Self::LookupHostnameResponseFut;
}