Struct trust_dns_https::HttpsClientStreamBuilder [−][src]
pub struct HttpsClientStreamBuilder { /* fields omitted */ }
Expand description
A HTTPS connection builder for DNS-over-HTTPS
Implementations
Return a new builder for DNS-over-HTTPS
Constructs a new TlsStreamBuilder with the associated ClientConfig
pub fn build<S>(
self,
name_server: SocketAddr,
dns_name: String
) -> HttpsClientConnect<S>ⓘNotable traits for HttpsClientConnect<S>impl<S> Future for HttpsClientConnect<S> where
S: Connect, type Output = Result<HttpsClientStream, ProtoError>;
where
S: Connect,
pub fn build<S>(
self,
name_server: SocketAddr,
dns_name: String
) -> HttpsClientConnect<S>ⓘNotable traits for HttpsClientConnect<S>impl<S> Future for HttpsClientConnect<S> where
S: Connect, type Output = Result<HttpsClientStream, ProtoError>;
where
S: Connect,
Notable traits for HttpsClientConnect<S>
impl<S> Future for HttpsClientConnect<S> where
S: Connect, type Output = Result<HttpsClientStream, ProtoError>;
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 certificate
Trait Implementations
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl !RefUnwindSafe for HttpsClientStreamBuilder
impl Send for HttpsClientStreamBuilder
impl Sync for HttpsClientStreamBuilder
impl Unpin for HttpsClientStreamBuilder
impl !UnwindSafe for HttpsClientStreamBuilder
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more