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,
query_path: String,
) -> H3ClientConnect ⓘ
pub fn build( self, name_server: SocketAddr, dns_name: String, query_path: 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(
self,
socket: Arc<dyn AsyncUdpSocket>,
name_server: SocketAddr,
dns_name: String,
query_path: String,
) -> H3ClientConnect ⓘ
pub fn build_with_future( self, socket: Arc<dyn AsyncUdpSocket>, name_server: SocketAddr, dns_name: String, query_path: String, ) -> H3ClientConnect ⓘ
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
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
)