Function tokio_openssl::connect [−][src]
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.