tokio-xmpp: rewrite for futures-0.3

This commit is contained in:
Astro 2020-03-05 01:25:24 +01:00
commit 23cb34e026
18 changed files with 801 additions and 1222 deletions

View file

@ -1,3 +1,4 @@
use super::Error;
use xmpp_parsers::{Element, Jid};
/// High-level event on the Stream implemented by Client and Component
@ -6,7 +7,7 @@ pub enum Event {
/// Stream is connected and initialized
Online(Jid),
/// Stream end
Disconnected,
Disconnected(Error),
/// Received stanza/nonza
Stanza(Element),
}