Struct trust_dns::udp::UdpClientConnection [] [src]

pub struct UdpClientConnection {
    // some fields omitted
}

UDP based DNS client

Methods

impl UdpClientConnection
[src]

fn new(name_server: SocketAddr) -> ClientResult<Self>

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

impl ClientConnection for UdpClientConnection
[src]

fn send(&mut self, buffer: Vec<u8>) -> ClientResult<Vec<u8>>

Sends a serialized message to via this connection, returning the serialized response. Read more

impl Debug for UdpClientConnection
[src]

fn fmt(&self, f: &mut Formatter) -> Result

Formats the value using the given formatter.