pub enum HostNameResolverRequest {
ResolveHostName {
host: String,
timeout: i64,
options: HostNameResolutionOptions,
responder: HostNameResolverResolveHostNameResponder,
},
}
Expand description
Discoverable protocol for resolving host names to IP addresses.
Variants§
ResolveHostName
Gets the addresses for the specified host.
- request
host
the simple name of the host. - request
timeout
specifies how long the service should wait before giving up when waiting for a response to a resolution query. In typical use, a timeout of two or three seconds is recommended. - request
options
options to be applied to the resolution.
- response
addresses
the addresses of the specified host, if it was found, an empty vector if not.
Implementations§
Source§impl HostNameResolverRequest
impl HostNameResolverRequest
pub fn into_resolve_host_name( self, ) -> Option<(String, i64, HostNameResolutionOptions, HostNameResolverResolveHostNameResponder)>
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 HostNameResolverRequest
impl !RefUnwindSafe for HostNameResolverRequest
impl Send for HostNameResolverRequest
impl Sync for HostNameResolverRequest
impl Unpin for HostNameResolverRequest
impl !UnwindSafe for HostNameResolverRequest
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