pub struct HttpsClientStreamBuilder { /* private fields */ }
Expand description
A HTTPS connection builder for DNS-over-HTTPS
Implementations§
Source§impl HttpsClientStreamBuilder
impl HttpsClientStreamBuilder
Sourcepub fn with_client_config(
client_config: Arc<ClientConfig>,
) -> HttpsClientStreamBuilder
pub fn with_client_config( client_config: Arc<ClientConfig>, ) -> HttpsClientStreamBuilder
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<S>(
self,
name_server: SocketAddr,
dns_name: String,
) -> HttpsClientConnect<S> ⓘwhere
S: Connect,
pub fn build<S>(
self,
name_server: SocketAddr,
dns_name: String,
) -> HttpsClientConnect<S> ⓘwhere
S: Connect,
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§
Source§impl Clone for HttpsClientStreamBuilder
impl Clone for HttpsClientStreamBuilder
Source§fn clone(&self) -> HttpsClientStreamBuilder
fn clone(&self) -> HttpsClientStreamBuilder
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 Freeze for HttpsClientStreamBuilder
impl !RefUnwindSafe for HttpsClientStreamBuilder
impl Send for HttpsClientStreamBuilder
impl Sync for HttpsClientStreamBuilder
impl Unpin for HttpsClientStreamBuilder
impl !UnwindSafe for HttpsClientStreamBuilder
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