Function tokio_xmpp::connect::starttls::starttls
source ยท pub async fn starttls<S: AsyncRead + AsyncWrite + Unpin>(
xmpp_stream: XmppStream<S>,
) -> Result<TlsStream<S>, Error>
Available on crate feature
starttls
only.Expand description
Performs <starttls/>
on an XmppStream and returns a binary
TlsStream.