Struct c_ares::Channel [] [src]

pub struct Channel {
    // some fields omitted
}

A channel for name service lookups.

Methods

impl Channel
[src]

Create a new channel for name service lookups.

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 INVALID_FD for "no action".

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

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.

Set the local IPv4 address from which to make queries.

Set the local IPv6 address from which to make queries.

Set the local device from which to make queries.

Look up the A records associated with name.

On completion, handler is called with the result.

Look up the AAAA records associated with name.

On completion, handler is called with the result.

Look up the CNAME record associated with name.

On completion, handler is called with the result.

Look up the MX records associated with name.

On completion, handler is called with the result.

Look up the NAPTR records associated with name.

On completion, handler is called with the result.

Look up the NS records associated with name.

On completion, handler is called with the result.

Look up the PTR records associated with name.

On completion, handler is called with the result.

Look up the SRV records associated with name.

On completion, handler is called with the result.

Look up the TXT records associated with name.

On completion, handler is called with the result.

Look up the SOA records associated with name.

On completion, handler is called with the result.

Perform a host query by address.

On completion, handler is called with the result.

Perform a host query by name.

On completion, handler is called with the result.

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

The valid values for flags are documented here.

On completion, handler is called with the result.

Cancel all requests made on this Channel.

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

Trait Implementations

impl Drop for Channel
[src]

A method called when the value goes out of scope. Read more

impl Send for Channel
[src]

impl Sync for Channel
[src]