Struct c_ares::Channel [] [src]

pub struct Channel { /* fields omitted */ }

A channel for name service lookups.

Methods

impl Channel
[src]

[src]

Create a new channel for name service lookups, with default Options.

[src]

Create a new channel for name service lookups, with the given Options.

[src]

Duplicate a channel.

[src]

Handle input, output, and timeout events associated with the specified file descriptors (sockets).

Providing a value for read_fd indicates that the identified socket is readable; likewise providing a value for write_fd indicates that the identified socket is writable. Use SOCKET_BAD for "no action".

[src]

Handle input and output events associated with the specified file descriptors (sockets). Also handles timeouts associated with the Channel.

[src]

Retrieve the set of socket descriptors which the calling application should wait on for reading and / or writing.

[src]

Retrieve the set of socket descriptors which the calling application should wait on for reading and / or writing.

[src]

Set the list of servers to contact, instead of the servers specified in resolv.conf or the local named.

String format is host[:port]. IPv6 addresses with ports require square brackets eg [2001:4860:4860::8888]:53.

[src]

Set the local IPv4 address from which to make queries.

[src]

Set the local IPv6 address from which to make queries.

[src]

Set the local device from which to make queries.

[src]

Initiate a single-question DNS query for the A records associated with name.

On completion, handler is called with the result.

[src]

Initiate a series of single-question DNS queries for the A records associated with name.

On completion, handler is called with the result.

[src]

Initiate a single-question DNS query for the AAAA records associated with name.

On completion, handler is called with the result.

[src]

Initiate a series of single-question DNS queries for the AAAA records associated with name.

On completion, handler is called with the result.

[src]

Initiate a single-question DNS query for the CNAME records associated with name.

On completion, handler is called with the result.

[src]

Initiate a series of single-question DNS queries for the CNAME records associated with name.

On completion, handler is called with the result.

[src]

Initiate a single-question DNS query for the MX records associated with name.

On completion, handler is called with the result.

[src]

Initiate a series of single-question DNS queries for the MX records associated with name.

On completion, handler is called with the result.

[src]

Initiate a single-question DNS query for the NAPTR records associated with name.

On completion, handler is called with the result.

[src]

Initiate a series of single-question DNS queries for the NAPTR records associated with name.

On completion, handler is called with the result.

[src]

Initiate a single-question DNS query for the NS records associated with name.

On completion, handler is called with the result.

[src]

Initiate a series of single-question DNS queries for the NS records associated with name.

On completion, handler is called with the result.

[src]

Initiate a single-question DNS query for the PTR records associated with name.

On completion, handler is called with the result.

[src]

Initiate a series of single-question DNS queries for the PTR records associated with name.

On completion, handler is called with the result.

[src]

Initiate a single-question DNS query for the SOA records associated with name.

On completion, handler is called with the result.

[src]

Initiate a series of single-question DNS queries for the SOA records associated with name.

On completion, handler is called with the result.

[src]

Initiate a single-question DNS query for the SRV records associated with name.

On completion, handler is called with the result.

[src]

Initiate a series of single-question DNS queries for the SRV records associated with name.

On completion, handler is called with the result.

[src]

Initiate a single-question DNS query for the TXT records associated with name.

On completion, handler is called with the result.

[src]

Initiate a series of single-question DNS queries for the TXT records associated with name.

On completion, handler is called with the result.

[src]

Perform a host query by address.

On completion, handler is called with the result.

[src]

Perform a host query by name.

On completion, handler is called with the result.

[src]

Address-to-nodename translation in protocol-independent manner.

The valid values for flags are documented here.

On completion, handler is called with the result.

[src]

Initiate a single-question DNS query for name. The class and type of the query are per the provided parameters, taking values as defined in arpa/nameser.h.

On completion, handler is called with the result.

This method is provided so that users can query DNS types for which c-ares does not provide a parser. This is expected to be a last resort; if a suitable query_xxx() is available, that should be preferred.

[src]

Initiate a series of single-question DNS queries for name. The class and type of the query are per the provided parameters, taking values as defined in arpa/nameser.h.

On completion, handler is called with the result.

This method is provided so that users can search DNS types for which c-ares does not provide a parser. This is expected to be a last resort; if a suitable search_xxx() is available, that should be preferred.

[src]

Cancel all requests made on this Channel.

Callbacks will be invoked for each pending query, passing a result Err(Error::ECANCELLED).

Trait Implementations

impl Drop for Channel
[src]

[src]

Executes the destructor for this type. Read more

impl Send for Channel
[src]

impl Sync for Channel
[src]