tokio-xmpp: doc
This commit is contained in:
parent
b6828b9674
commit
a4325c787a
5 changed files with 40 additions and 8 deletions
|
|
@ -10,6 +10,8 @@ use crate::{Error, ProtocolError};
|
|||
|
||||
const NS_XMPP_STREAM: &str = "http://etherx.jabber.org/streams";
|
||||
|
||||
/// Sends a `<stream:stream>`, then wait for one from the server, and
|
||||
/// construct an XMPPStream.
|
||||
pub async fn start<S: AsyncRead + AsyncWrite + Unpin>(
|
||||
mut stream: Framed<S, XMPPCodec>,
|
||||
jid: Jid,
|
||||
|
|
|
|||
Loading…
Reference in a new issue