Struct hyper_dns::DnsConnector [] [src]

pub struct DnsConnector<C: NetworkConnector> { /* fields omitted */ }

A connector that wraps another connector and provides custom DNS resolution.

Methods

impl<C: NetworkConnector> DnsConnector<C>
[src]

Trait Implementations

impl<C: Debug + NetworkConnector> Debug for DnsConnector<C>
[src]

Formats the value using the given formatter.

impl<C: Clone + NetworkConnector> Clone for DnsConnector<C>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<C: NetworkConnector<Stream = S>, S: NetworkStream + Send> NetworkConnector for DnsConnector<C>
[src]

Type of Stream to create

Performs DNS SRV resolution, then calls into the inner connector with the results. Note that currently this does not take into account the following in the SRV record: * weight * priority It just takes a random entry in the DNS answers that are returned.