fidl_fuchsia_net_name

Trait LookupProxyInterface

Source
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§

Required Methods§

Source

fn lookup_ip( &self, hostname: &str, options: &LookupIpOptions, ) -> Self::LookupIpResponseFut

Source

fn lookup_hostname(&self, addr: &IpAddress) -> Self::LookupHostnameResponseFut

Implementors§