Move ClientFeature to feature module

This commit is contained in:
xmppftw xmppftw 2023-12-29 21:41:09 +01:00 committed by xmppftw@kl.netlib.re
commit 0bbc089480
2 changed files with 15 additions and 8 deletions

View file

@ -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,