Add into_inner() to tokio_xmpp::SimpleClient

moparisthebest created

Change summary

tokio-xmpp/src/client/simple_client.rs | 5 +++++
1 file changed, 5 insertions(+)

Detailed changes

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<XMPPStream, Error> {
         let username = jid.clone().node().unwrap();
         let password = password;