pub enum ResolverRequest {
ResolveHostName {
host: String,
timeout: i64,
responder: ResolverResolveHostNameResponder,
},
}
Expand description
Discoverable protocol for resolving host names to IP addresses. Deprecated: use HostNameResolver.
Variants§
ResolveHostName
Gets the addresses for the specified host. 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.
A successful resolution may return one or both addresses. An unsuccessful resolution is indicated when both addresses are null.
Implementations§
Source§impl ResolverRequest
impl ResolverRequest
pub fn into_resolve_host_name( self, ) -> Option<(String, i64, ResolverResolveHostNameResponder)>
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 ResolverRequest
impl !RefUnwindSafe for ResolverRequest
impl Send for ResolverRequest
impl Sync for ResolverRequest
impl Unpin for ResolverRequest
impl !UnwindSafe for ResolverRequest
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