pub fn tls_client_connect_with_future<S, F>(
    future: F,
    socket_addr: SocketAddr,
    dns_name: String,
    client_config: Arc<ClientConfig>
) -> (Pin<Box<dyn Future<Output = Result<TlsClientStream<S>, ProtoError>> + Send + Unpin>>, BufDnsStreamHandle)where
    S: DnsTcpStream,
    F: Future<Output = Result<S>> + Send + Unpin + 'static,
Available on crate feature dns-over-rustls only.
Expand description

Creates a new TlsStream to the specified name_server connecting from a specific address.

Arguments

  • future - A future producing DnsTcpStream
  • dns_name - The DNS name, Subject Public Key Info (SPKI) name, as associated to a certificate