Move ClientFeature to feature module
This commit is contained in:
parent
77ee7c15fa
commit
0bbc089480
2 changed files with 15 additions and 8 deletions
|
|
@ -33,6 +33,7 @@ pub use tokio_xmpp::{BareJid, Element, FullJid, Jid};
|
|||
extern crate log;
|
||||
|
||||
pub mod builder;
|
||||
pub mod feature;
|
||||
pub mod iq;
|
||||
pub mod message;
|
||||
pub mod presence;
|
||||
|
|
@ -41,19 +42,12 @@ pub mod upload;
|
|||
|
||||
// Module re-exports
|
||||
pub use builder::{ClientBuilder, ClientType};
|
||||
pub use feature::ClientFeature;
|
||||
|
||||
pub type Error = tokio_xmpp::Error;
|
||||
pub type Id = Option<String>;
|
||||
pub type RoomNick = String;
|
||||
|
||||
#[derive(PartialEq)]
|
||||
pub enum ClientFeature {
|
||||
#[cfg(feature = "avatars")]
|
||||
Avatars,
|
||||
ContactList,
|
||||
JoinRooms,
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
pub enum Event {
|
||||
Online,
|
||||
|
|
|
|||
Loading…
Reference in a new issue