[][src]Function tokio_boring::connect

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

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