Add into_inner() to tokio_xmpp::SimpleClient

This commit is contained in:
moparisthebest 2021-03-24 02:26:04 -04:00
parent 15255a6b30
commit 6fc016c006

View file

@ -44,6 +44,11 @@ impl Client {
Ok(Client { stream })
}
/// Get direct access to inner XMPP Stream
pub fn into_inner(self) -> XMPPStream {
self.stream
}
async fn connect(jid: Jid, password: String) -> Result<XMPPStream, Error> {
let username = jid.clone().node().unwrap();
let password = password;