Function tokio_boring::connect

source ·
pub async fn connect<S>(
    config: ConnectConfiguration,
    domain: &str,
    stream: S
) -> Result<SslStream<S>, HandshakeError<S>>
where S: AsyncRead + AsyncWrite + Unpin,
Expand description

Asynchronously performs a client-side TLS handshake over the provided stream.

This function automatically sets the task waker on the Ssl from config to allow to make use of async callbacks provided by the boring crate.