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]

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.

Returns an arc reference to the resolver’s config.

Trait Implementations

impl Clone for ResolverTask
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more