pub struct LookupSynchronousProxy { /* private fields */ }
Implementations§
source§impl LookupSynchronousProxy
impl LookupSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
sourcepub fn wait_for_event(&self, deadline: Time) -> Result<LookupEvent, Error>
pub fn wait_for_event(&self, deadline: Time) -> Result<LookupEvent, Error>
Waits until an event arrives and returns it. It is safe for other threads to make concurrent requests while waiting for an event.
sourcepub fn lookup_ip(
&self,
hostname: &str,
options: LookupIpOptions,
___deadline: Time
) -> Result<LookupLookupIpResult, Error>
pub fn lookup_ip( &self, hostname: &str, options: LookupIpOptions, ___deadline: Time ) -> Result<LookupLookupIpResult, Error>
Lookup a list of IP addresses by hostname.
sourcepub fn lookup_hostname(
&self,
addr: &mut IpAddress,
___deadline: Time
) -> Result<LookupLookupHostnameResult, Error>
pub fn lookup_hostname( &self, addr: &mut IpAddress, ___deadline: Time ) -> Result<LookupLookupHostnameResult, Error>
Look up a hostname by IP address.