Struct trust_dns_https::HttpsClientStreamBuilder[][src]

pub struct HttpsClientStreamBuilder { /* fields omitted */ }

A HTTPS connection builder for DNS-over-HTTPS

Methods

impl HttpsClientStreamBuilder
[src]

Return a new builder for DNS-over-HTTPS

Constructs a new TlsStreamBuilder with the associated ClientConfig

Add a custom trusted peer certificate or certificate auhtority.

If this is the 'client' then the 'server' must have it associated as it's identity, or have had the identity signed by this certificate.

Creates a new HttpsStream to the specified name_server

Arguments

  • name_server - IP and Port for the remote DNS resolver
  • dns_name - The DNS name, Subject Public Key Info (SPKI) name, as associated to a certificate
  • loop_handle - The reactor Core handle

Trait Implementations

impl Clone for HttpsClientStreamBuilder
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations