Add into_inner() to tokio_xmpp::SimpleClient
This commit is contained in:
parent
15255a6b30
commit
6fc016c006
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue