Struct domain::resolv::ResolverTask
[−]
[src]
pub struct ResolverTask { /* fields omitted */ }
A resolver bound to a futures task.
You can use this type within a running future to start a query on top
of the resolver using the query()
method.
Methods
impl ResolverTask
[src]
fn query<N: DName>(&self, name: N, rtype: Rtype, class: Class) -> Query
Start a DNS query on this resolver.
Returns a future that, if successful, will resolve into a DNS
message containing a response to a query for resource records of type
rtype
associated with the domain name name
and class class
. The
name must be an absolute name or else the query will fail.
fn conf(&self) -> Arc<ResolvConf>
Returns an arc reference to the resolver’s config.
Trait Implementations
impl Clone for ResolverTask
[src]
fn clone(&self) -> ResolverTask
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more