Struct trust_dns_https::HttpsClientStreamBuilder [−][src]
pub struct HttpsClientStreamBuilder { /* fields omitted */ }
A HTTPS connection builder for DNS-over-HTTPS
Methods
impl HttpsClientStreamBuilder
[src]
impl HttpsClientStreamBuilder
pub fn new() -> HttpsClientStreamBuilder
[src]
pub fn new() -> HttpsClientStreamBuilder
Return a new builder for DNS-over-HTTPS
pub fn with_client_config(client_config: ClientConfig) -> Self
[src]
pub fn with_client_config(client_config: ClientConfig) -> Self
Constructs a new TlsStreamBuilder with the associated ClientConfig
pub fn add_ca(&mut self, ca: Certificate)
[src]
pub fn add_ca(&mut self, ca: Certificate)
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.
pub fn build(
self,
name_server: SocketAddr,
dns_name: String
) -> HttpsClientConnect
[src]
pub fn build(
self,
name_server: SocketAddr,
dns_name: String
) -> HttpsClientConnect
Creates a new HttpsStream to the specified name_server
Arguments
name_server
- IP and Port for the remote DNS resolverdns_name
- The DNS name, Subject Public Key Info (SPKI) name, as associated to a certificateloop_handle
- The reactor Core handle
Trait Implementations
impl Clone for HttpsClientStreamBuilder
[src]
impl Clone for HttpsClientStreamBuilder
fn clone(&self) -> HttpsClientStreamBuilder
[src]
fn clone(&self) -> HttpsClientStreamBuilder
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl Send for HttpsClientStreamBuilder
impl Send for HttpsClientStreamBuilder
impl Sync for HttpsClientStreamBuilder
impl Sync for HttpsClientStreamBuilder