pub struct HttpsClientStreamBuilder<P> { /* private fields */ }
Available on crate feature
dns-over-https-rustls
only.Expand description
A HTTPS connection builder for DNS-over-HTTPS
Implementations§
Source§impl<P: RuntimeProvider> HttpsClientStreamBuilder<P>
impl<P: RuntimeProvider> HttpsClientStreamBuilder<P>
Sourcepub fn with_client_config(client_config: Arc<ClientConfig>, provider: P) -> Self
pub fn with_client_config(client_config: Arc<ClientConfig>, provider: P) -> Self
Constructs a new TlsStreamBuilder with the associated ClientConfig
Sourcepub fn bind_addr(&mut self, bind_addr: SocketAddr)
pub fn bind_addr(&mut self, bind_addr: SocketAddr)
Sets the address to connect from.
Sourcepub fn build(
self,
name_server: SocketAddr,
dns_name: String,
http_endpoint: String,
) -> HttpsClientConnect<P::Tcp> ⓘ
pub fn build( self, name_server: SocketAddr, dns_name: String, http_endpoint: String, ) -> HttpsClientConnect<P::Tcp> ⓘ
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 certificatehttp_endpoint
- The HTTP endpoint where the remote DNS resolver provides service, typically/dns-query
Trait Implementations§
Source§impl<P: Clone> Clone for HttpsClientStreamBuilder<P>
impl<P: Clone> Clone for HttpsClientStreamBuilder<P>
Source§fn clone(&self) -> HttpsClientStreamBuilder<P>
fn clone(&self) -> HttpsClientStreamBuilder<P>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<P> Freeze for HttpsClientStreamBuilder<P>where
P: Freeze,
impl<P> !RefUnwindSafe for HttpsClientStreamBuilder<P>
impl<P> Send for HttpsClientStreamBuilder<P>where
P: Send,
impl<P> Sync for HttpsClientStreamBuilder<P>where
P: Sync,
impl<P> Unpin for HttpsClientStreamBuilder<P>where
P: Unpin,
impl<P> !UnwindSafe for HttpsClientStreamBuilder<P>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)