pub async fn starttls<S: AsyncRead + AsyncWrite + Unpin + AsRawFd>(
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.