pub async fn client_login<S: AsyncBufRead + AsyncWrite + Unpin>(
stream: XmppStream<S>,
sasl_mechanisms: &SaslMechanisms,
creds: Credentials,
) -> Result<InitiatingStream<S>, Error>Expand description
Run the authentication handshake on a given stream.
Uses the given sasl_mechanisms and creds to perform the full
authentication handshake. As authentication ends with a stream reset,
this returns the stream as InitiatingStream on success.