pub enum LookupRequest {
LookupIp {
hostname: String,
options: LookupIpOptions,
responder: LookupLookupIpResponder,
},
LookupHostname {
addr: IpAddress,
responder: LookupLookupHostnameResponder,
},
}
Expand description
Provides name and address resolution.
Variants§
LookupIp
Lookup a list of IP addresses by hostname.
LookupHostname
Look up a hostname by IP address.
Implementations§
Source§impl LookupRequest
impl LookupRequest
pub fn into_lookup_ip( self, ) -> Option<(String, LookupIpOptions, LookupLookupIpResponder)>
pub fn into_lookup_hostname( self, ) -> Option<(IpAddress, LookupLookupHostnameResponder)>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LookupRequest
impl !RefUnwindSafe for LookupRequest
impl Send for LookupRequest
impl Sync for LookupRequest
impl Unpin for LookupRequest
impl !UnwindSafe for LookupRequest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more