Struct fidl_fuchsia_net_name::LookupProxy
source · pub struct LookupProxy { /* private fields */ }
Implementations§
source§impl LookupProxy
impl LookupProxy
sourcepub fn take_event_stream(&self) -> LookupEventStream
pub fn take_event_stream(&self) -> LookupEventStream
Get a Stream of events from the remote end of the Lookup protocol
Panics
Panics if the event stream was already taken.
sourcepub fn lookup_ip(
&self,
hostname: &str,
options: LookupIpOptions
) -> QueryResponseFut<LookupLookupIpResult>
pub fn lookup_ip( &self, hostname: &str, options: LookupIpOptions ) -> QueryResponseFut<LookupLookupIpResult>
Lookup a list of IP addresses by hostname.
sourcepub fn lookup_hostname(
&self,
addr: &mut IpAddress
) -> QueryResponseFut<LookupLookupHostnameResult>
pub fn lookup_hostname( &self, addr: &mut IpAddress ) -> QueryResponseFut<LookupLookupHostnameResult>
Look up a hostname by IP address.
Trait Implementations§
source§impl Clone for LookupProxy
impl Clone for LookupProxy
source§fn clone(&self) -> LookupProxy
fn clone(&self) -> LookupProxy
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for LookupProxy
impl Debug for LookupProxy
source§impl LookupProxyInterface for LookupProxy
impl LookupProxyInterface for LookupProxy
type LookupIpResponseFut = QueryResponseFut<Result<LookupResult, LookupError>>
fn lookup_ip( &self, hostname: &str, options: LookupIpOptions ) -> Self::LookupIpResponseFut
type LookupHostnameResponseFut = QueryResponseFut<Result<String, LookupError>>
fn lookup_hostname( &self, addr: &mut IpAddress ) -> Self::LookupHostnameResponseFut
source§impl Proxy for LookupProxy
impl Proxy for LookupProxy
§type Protocol = LookupMarker
type Protocol = LookupMarker
The protocol which this
Proxy
controls.source§fn from_channel(inner: AsyncChannel) -> Self
fn from_channel(inner: AsyncChannel) -> Self
Create a proxy over the given channel.
source§fn into_channel(self) -> Result<AsyncChannel, Self>
fn into_channel(self) -> Result<AsyncChannel, Self>
Attempt to convert the proxy back into a channel. Read more
source§fn as_channel(&self) -> &AsyncChannel
fn as_channel(&self) -> &AsyncChannel
Get a reference to the proxy’s underlying channel. Read more