Module trust_dns_proto::xfer[][src]

DNS high level transit implimentations.

Primarily there are two types in this module of interest, the DnsFuture type and the DnsHandle type. DnsFuture can be thought of as the state machine responsible for sending and receiving DNS messages. DnsHandle is the type given to API users of the trust-dns-proto library to send messages into the DnsFuture for delivery. Finally there is the DnsRequest type. This allows for customizations, through DnsReqeustOptions, to the delivery of messages via a DnsFuture.

Re-exports

pub use self::dns_future::DnsFuture;
pub use self::dns_handle::BasicDnsHandle;
pub use self::dns_handle::DnsHandle;
pub use self::dns_handle::DnsStreamHandle;
pub use self::dns_handle::StreamHandle;
pub use self::dns_request::DnsRequest;
pub use self::dns_request::DnsRequestOptions;
pub use self::dns_response::DnsResponse;
pub use self::retry_dns_handle::RetryDnsHandle;

Modules

dns_future

DnsFuture and associated types implement the state machines for sending DNS messages while using the underlying streams.

dns_handle

DnsHandle types perform conversions of the raw DNS messages before sending the messages on the specified streams.

dns_request

DnsRequest wraps a Message and associates a set of DnsRequestOptions for specifying different transfer options.

dns_response

DnsResponse wraps a Message and any associated connection details

retry_dns_handle

RetryDnsHandle allows for DnsQueries to be reattempted on failure

Structs

BufDnsStreamHandle

A buffering stream bound to a SocketAddr

BufStreamHandle

A sender to which serialized DNS Messages can be sent

Type Definitions

MessageStreamHandle

A sender to which a Message can be sent