Struct hickory_proto::h3::H3ClientStreamBuilder
source · pub struct H3ClientStreamBuilder { /* private fields */ }
Available on crate feature
dns-over-h3
only.Expand description
A H3 connection builder for DNS-over-HTTP/3
Implementations§
source§impl H3ClientStreamBuilder
impl H3ClientStreamBuilder
sourcepub fn crypto_config(&mut self, crypto_config: TlsClientConfig) -> &mut Self
pub fn crypto_config(&mut self, crypto_config: TlsClientConfig) -> &mut Self
Constructs a new H3ClientStreamBuilder 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) -> H3ClientConnect ⓘ
pub fn build(self, name_server: SocketAddr, dns_name: String) -> H3ClientConnect ⓘ
Creates a new H3Stream 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>(
self,
future: F,
name_server: SocketAddr,
dns_name: String
) -> H3ClientConnect ⓘwhere
S: DnsUdpSocket + QuicLocalAddr + 'static,
F: Future<Output = Result<S>> + Send + Unpin + 'static,
pub fn build_with_future<S, F>(
self,
future: F,
name_server: SocketAddr,
dns_name: String
) -> H3ClientConnect ⓘwhere
S: DnsUdpSocket + QuicLocalAddr + 'static,
F: Future<Output = Result<S>> + Send + Unpin + 'static,
Creates a new H3Stream with existing connection
Trait Implementations§
source§impl Clone for H3ClientStreamBuilder
impl Clone for H3ClientStreamBuilder
source§fn clone(&self) -> H3ClientStreamBuilder
fn clone(&self) -> H3ClientStreamBuilder
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 H3ClientStreamBuilder
impl !RefUnwindSafe for H3ClientStreamBuilder
impl Send for H3ClientStreamBuilder
impl Sync for H3ClientStreamBuilder
impl Unpin for H3ClientStreamBuilder
impl !UnwindSafe for H3ClientStreamBuilder
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