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;
}Required Associated Types§
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
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".