Trait xso::IntoXml

source ·
pub trait IntoXml {
    type EventIter: Iterator<Item = Result<Event, Error>>;

    // Required method
    fn into_event_iter(self) -> Result<Self::EventIter, Error>;
}
Expand description

Trait allowing to consume a struct and iterate its contents as serialisable rxml::Event items.

Important: Changing the EventIter associated type is considered a non-breaking change for any given implementation of this trait. Always refer to a type’s iterator type using fully-qualified notation, for example: <T as xso::IntoXml>::EventIter.

Required Associated Types§

source

type EventIter: Iterator<Item = Result<Event, Error>>

The iterator type.

Important: Changing this type is considered a non-breaking change for any given implementation of this trait. Always refer to a type’s iterator type using fully-qualified notation, for example: <T as xso::IntoXml>::EventIter.

Required Methods§

source

fn into_event_iter(self) -> Result<Self::EventIter, Error>

Return an iterator which emits the contents of the struct or enum as serialisable rxml::Event items.

Implementations on Foreign Types§

source§

impl IntoXml for Element

Implementors§

impl IntoXml for Data

impl IntoXml for Info

impl IntoXml for Metadata

impl IntoXml for Data

impl IntoXml for Storage

impl IntoXml for Url

impl IntoXml for Received

impl IntoXml for Sent

impl IntoXml for Append

impl IntoXml for Cert

impl IntoXml for Disable

impl IntoXml for Item

impl IntoXml for Revoke

impl IntoXml for Users

impl IntoXml for Option_

impl IntoXml for Delay

impl IntoXml for Feature

impl IntoXml for Identity

impl IntoXml for Item

impl IntoXml for ECaps2

impl IntoXml for Service

impl IntoXml for Hash

impl IntoXml for Get

impl IntoXml for Put

impl IntoXml for Close

impl IntoXml for Data

impl IntoXml for Open

impl IntoXml for Idle

impl IntoXml for Content

impl IntoXml for Range

impl IntoXml for Received

impl IntoXml for Content

impl IntoXml for Group

impl IntoXml for RtcpFb

impl IntoXml for Group

impl IntoXml for Source

impl IntoXml for Bundle

impl IntoXml for Device

impl IntoXml for Header

impl IntoXml for IV

impl IntoXml for Key

impl IntoXml for Payload

impl IntoXml for Prekeys

impl IntoXml for Fin

impl IntoXml for Result_

impl IntoXml for URI

impl IntoXml for Replace

impl IntoXml for Create

impl IntoXml for Destroy

impl IntoXml for Join

impl IntoXml for Mix

impl IntoXml for SetNick

impl IntoXml for History

impl IntoXml for Muc

impl IntoXml for Continue

impl IntoXml for Item

impl IntoXml for MucUser

impl IntoXml for Oob

impl IntoXml for PubKey

impl IntoXml for Query

impl IntoXml for Default

impl IntoXml for Delete

impl IntoXml for Purge

impl IntoXml for Redirect

impl IntoXml for Create

impl IntoXml for Default

impl IntoXml for Items

impl IntoXml for Options

impl IntoXml for Publish

impl IntoXml for Retract

impl IntoXml for Reaction

impl IntoXml for Received

impl IntoXml for Item

impl IntoXml for Roster

impl IntoXml for Insert

impl IntoXml for Wait

impl IntoXml for Auth

impl IntoXml for Response

impl IntoXml for Success

impl IntoXml for A

impl IntoXml for Enable

impl IntoXml for Enabled

impl IntoXml for Failed

impl IntoXml for Resume

impl IntoXml for Resumed

impl IntoXml for OriginId

impl IntoXml for StanzaId

impl IntoXml for Stream

impl IntoXml for Binval

impl IntoXml for Photo

impl IntoXml for Type

impl IntoXml for Photo

impl IntoXml for Open