pub enum XmppStreamElement {
Stanza(Stanza),
Sasl(Nonza),
Starttls(Nonza),
ComponentHandshake(Handshake),
StreamError(ReceivedStreamError),
SM(Nonza),
}
Expand description
Any valid XMPP stream-level element.
Variants§
Stanza(Stanza)
Stanza
Sasl(Nonza)
SASL-related nonza
Starttls(Nonza)
STARTTLS-related nonza
ComponentHandshake(Handshake)
Component protocol nonzas
StreamError(ReceivedStreamError)
Stream error received
SM(Nonza)
XEP-0198 nonzas
Trait Implementations§
Source§impl AsXml for XmppStreamElement
impl AsXml for XmppStreamElement
Source§type ItemIter<'xso_proc_as_xml_iter_lifetime> = XmppStreamElementAsXmlIterator<'xso_proc_as_xml_iter_lifetime>
type ItemIter<'xso_proc_as_xml_iter_lifetime> = XmppStreamElementAsXmlIterator<'xso_proc_as_xml_iter_lifetime>
The iterator type. Read more
Source§impl Debug for XmppStreamElement
impl Debug for XmppStreamElement
Source§impl From<&XmppStreamElement> for Element
impl From<&XmppStreamElement> for Element
Source§fn from(other: &XmppStreamElement) -> Self
fn from(other: &XmppStreamElement) -> Self
Converts to this type from the input type.
Source§impl From<Stanza> for XmppStreamElement
impl From<Stanza> for XmppStreamElement
Source§impl From<XmppStreamElement> for Element
impl From<XmppStreamElement> for Element
Source§fn from(other: XmppStreamElement) -> Self
fn from(other: XmppStreamElement) -> Self
Converts to this type from the input type.
Source§impl FromXml for XmppStreamElement
impl FromXml for XmppStreamElement
Source§type Builder = XmppStreamElementFromXmlBuilder
type Builder = XmppStreamElementFromXmlBuilder
A builder type used to construct the element. Read more
Source§fn from_events(
name: QName,
attrs: AttrMap,
ctx: &Context<'_>,
) -> Result<Self::Builder, FromEventsError>
fn from_events( name: QName, attrs: AttrMap, ctx: &Context<'_>, ) -> Result<Self::Builder, FromEventsError>
Attempt to initiate the streamed construction of this struct from XML. Read more
Source§fn xml_name_matcher() -> XmlNameMatcher<'static>
fn xml_name_matcher() -> XmlNameMatcher<'static>
Return a predicate which determines if
Self
may be parsed from
a given XML element. Read moreSource§impl TryFrom<Element> for XmppStreamElement
impl TryFrom<Element> for XmppStreamElement
Source§type Error = FromElementError
type Error = FromElementError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for XmppStreamElement
impl RefUnwindSafe for XmppStreamElement
impl Send for XmppStreamElement
impl Sync for XmppStreamElement
impl Unpin for XmppStreamElement
impl UnwindSafe for XmppStreamElement
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more