Struct hickory_proto::h2::HttpsClientStreamBuilder
source · pub struct HttpsClientStreamBuilder { /* private fields */ }
Available on crate feature
dns-over-https
only.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>) -> Self
pub fn with_client_config(client_config: Arc<ClientConfig>) -> 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<S: Connect>(
self,
name_server: SocketAddr,
dns_name: String
) -> HttpsClientConnect<S> ⓘ
pub fn build<S: Connect>( self, name_server: SocketAddr, dns_name: String ) -> HttpsClientConnect<S> ⓘ
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
sourcepub fn build_with_future<S, F>(
future: F,
client_config: Arc<ClientConfig>,
name_server: SocketAddr,
dns_name: String
) -> HttpsClientConnect<S> ⓘ
pub fn build_with_future<S, F>( future: F, client_config: Arc<ClientConfig>, name_server: SocketAddr, dns_name: String ) -> HttpsClientConnect<S> ⓘ
Creates a new HttpsStream with existing connection
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