pub enum Stanza {
Iq(Iq),
Message(Message),
Presence(Presence),
}Expand description
A stanza sent/received over the stream.
Variants§
Trait Implementations§
Source§impl AsXml for Stanza
impl AsXml for Stanza
Source§impl FromXml for Stanza
impl FromXml for Stanza
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 moreimpl StructuralPartialEq for Stanza
Source§impl TryFrom<Element> for Stanza
impl TryFrom<Element> for Stanza
Source§type Error = FromElementError
type Error = FromElementError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for Stanza
impl RefUnwindSafe for Stanza
impl Send for Stanza
impl Sync for Stanza
impl Unpin for Stanza
impl UnsafeUnpin for Stanza
impl UnwindSafe for Stanza
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