From 6fc016c006487c64b61e9fead41856ea74bb5bc4 Mon Sep 17 00:00:00 2001 From: moparisthebest Date: Wed, 24 Mar 2021 02:26:04 -0400 Subject: [PATCH] Add into_inner() to tokio_xmpp::SimpleClient --- tokio-xmpp/src/client/simple_client.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tokio-xmpp/src/client/simple_client.rs b/tokio-xmpp/src/client/simple_client.rs index 4b69045..df87ef0 100644 --- a/tokio-xmpp/src/client/simple_client.rs +++ b/tokio-xmpp/src/client/simple_client.rs @@ -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 { let username = jid.clone().node().unwrap(); let password = password;