pub struct UdpClientConnection { /* private fields */ }
Expand description

UDP based DNS Client connection

Use with trust_dns::client::Client impls

Implementations

Creates a new client connection.

Note this has side affects of binding the socket to 0.0.0.0 and starting the listening event_loop. Expect this to change in the future.

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

Trait Implementations

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
Returns a copy of the value. Read more
Performs copy-assignment from source. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.