Function tokio_xmpp::starttls::starttls

source ยท
pub async fn starttls<S: AsyncRead + AsyncWrite + Unpin>(
    xmpp_stream: XMPPStream<S>,
) -> Result<TlsStream<S>, Error>
Expand description

Performs <starttls/> on an XMPPStream and returns a binary TlsStream.