Struct trust_dns::tcp::TcpClientConnection[][src]

pub struct TcpClientConnection { /* fields omitted */ }

Tcp client connection

Use with trust_dns::client::Client impls

Methods

impl TcpClientConnection
[src]

Creates a new client connection.

Note this has side affects of establishing the connection to the specified DNS server and starting the event_loop. Expect this to change in the future.

Default connection timeout is 5 seconds

Arguments

  • name_server - address of the name server to use for queries

Creates a new client connection.

Note this has side affects of establishing the connection to the specified DNS server and starting the event_loop. Expect this to change in the future.

Arguments

  • name_server - address of the name server to use for queries

Trait Implementations

impl Clone for TcpClientConnection
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl ClientConnection for TcpClientConnection
[src]

The associated DNS RequestSender type.

Response type of the RequestSender

A future that resolves to the RequestSender

Construct a new stream for use in the Client

Auto Trait Implementations