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

pub struct TcpClientConnection {
    // some fields omitted

TCP based DNS client


impl TcpClientConnection

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

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.


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

Trait Implementations

impl ClientConnection for TcpClientConnection

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

impl Debug for TcpClientConnection

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