xmlstream: support receiving stream errors
This commit is contained in:
parent
8c3c8c7c97
commit
2388f23b4e
1 changed files with 8 additions and 1 deletions
|
@ -6,7 +6,10 @@
|
|||
|
||||
use xso::{AsXml, FromXml};
|
||||
|
||||
use xmpp_parsers::{component, iq::Iq, message::Message, presence::Presence, sasl, starttls};
|
||||
use xmpp_parsers::{
|
||||
component, iq::Iq, message::Message, presence::Presence, sasl, starttls,
|
||||
stream_error::ReceivedStreamError,
|
||||
};
|
||||
|
||||
/// Any valid XMPP stream-level element.
|
||||
#[derive(FromXml, AsXml, Debug)]
|
||||
|
@ -35,4 +38,8 @@ pub enum XmppStreamElement {
|
|||
/// Component protocol nonzas
|
||||
#[xml(transparent)]
|
||||
ComponentHandshake(component::Handshake),
|
||||
|
||||
/// Stream error received
|
||||
#[xml(transparent)]
|
||||
StreamError(ReceivedStreamError),
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue