Struct trust_dns::tcp::TcpClientConnection
[−]
[src]
pub struct TcpClientConnection { // some fields omitted }
TCP based DNS client
Methods
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.
Arguments
name_server
- address of the name server to use for queries