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