restructure auth code

This commit is contained in:
Astro 2018-12-20 20:39:01 +01:00
commit ce039d767e
4 changed files with 70 additions and 90 deletions

View file

@ -19,7 +19,7 @@ use xml5ever::interface::Attribute;
use xml5ever::tokenizer::{Tag, TagKind, Token, TokenSink, XmlTokenizer};
/// Anything that can be sent or received on an XMPP/XML stream
#[derive(Debug)]
#[derive(Debug, Clone, PartialEq, Eq)]
pub enum Packet {
/// `<stream:stream>` start tag
StreamStart(HashMap<String, String>),