pub enum Nonza {
Enable(Enable),
Enabled(Enabled),
Resume(Resume),
Resumed(Resumed),
Failed(Failed),
Ack(A),
Req(R),
}
Expand description
Enum which allows parsing/serialising any XEP-0198 element.
Variants§
Enable(Enable)
Request to enable SM
Enabled(Enabled)
Successful SM enablement response
Resume(Resume)
Request to resume SM
Resumed(Resumed)
Sucessful SM resumption response
Failed(Failed)
Error response
Ack(A)
Acknowledgement
Req(R)
Request for an acknowledgement
Trait Implementations§
Source§impl AsXml for Nonza
impl AsXml for Nonza
Source§impl FromXml for Nonza
impl FromXml for Nonza
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 Nonza
impl TryFrom<Element> for Nonza
Source§type Error = FromElementError
type Error = FromElementError
The type returned in the event of a conversion error.
impl StructuralPartialEq for Nonza
Auto Trait Implementations§
impl Freeze for Nonza
impl RefUnwindSafe for Nonza
impl Send for Nonza
impl Sync for Nonza
impl Unpin for Nonza
impl UnwindSafe for Nonza
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