Struct trust_dns::tls::TlsClientConnectionBuilder
[−]
[src]
pub struct TlsClientConnectionBuilder(_);
Methods
impl TlsClientConnectionBuilder
[src]
fn add_ca(&mut self, ca: OpensslX509)
fn build(self,
name_server: SocketAddr,
subject_name: String)
-> ClientResult<TlsClientConnection>
name_server: SocketAddr,
subject_name: String)
-> ClientResult<TlsClientConnection>
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