Add AsyncServerConnector to AsyncClient to be able to support any stream
Unfortunately API breaking unless we do some export mangling
This commit is contained in:
parent
3d9bdd6fe2
commit
3cab603a4c
6 changed files with 86 additions and 57 deletions
|
|
@ -7,6 +7,7 @@
|
|||
#![deny(bare_trait_objects)]
|
||||
|
||||
pub use tokio_xmpp::parsers;
|
||||
use tokio_xmpp::{AsyncClient, AsyncServerConfig};
|
||||
pub use tokio_xmpp::{BareJid, Element, FullJid, Jid};
|
||||
#[macro_use]
|
||||
extern crate log;
|
||||
|
|
@ -31,6 +32,8 @@ pub use builder::{ClientBuilder, ClientType};
|
|||
pub use event::Event;
|
||||
pub use feature::ClientFeature;
|
||||
|
||||
type TokioXmppClient = AsyncClient<AsyncServerConfig>;
|
||||
|
||||
pub type Error = tokio_xmpp::Error;
|
||||
pub type Id = Option<String>;
|
||||
pub type RoomNick = String;
|
||||
|
|
|
|||
Loading…
Reference in a new issue