Struct libstrophe::Stanza [] [src]

pub struct Stanza<'cx> { /* fields omitted */ }

Proxy to underlying xmpp_stanza_t struct.

Most of the methods in this struct mimic the methods of the underlying library. So please see libstrophe docs and sources. Only where it's not the case or there is some additional logic involved then you can see the method description.

This struct implements:

Methods

impl<'cx> Stanza<'cx>
[src]

[src]

xmpp_stanza_new

The newly created stanza is not really useful until you assign an internal type to it. To do that you must call set_text() to make it XMPP_STANZA_TEXT stanza or set_name() to make it XMPP_STANZA_TAG stanza.

[src]

[src]

[src]

[src]

Create an owning stanza from the raw pointer, for internal use

[src]

Create a borrowing stanza from the constant raw pointer, for internal use

[src]

Create a borrowing stanza from the mutable raw pointer, for internal use

[src]

Return internal raw pointer to stanza, for internal use

[src]

Return context for this Stanza

The underlying library does not provide direct access to its context so this method works this around by relying on some of the library internals. With the new version this might need rewriting.

[src]

[src]

[src]

[src]

xmpp_stanza_set_name

Be aware that calling this method changes the internal type of stanza to XMPP_STANZA_TAG.

[src]

[src]

[src]

[src]

[src]

xmpp_stanza_get_attributes

This method returns data as HashMap unlike underlying function.

[src]

[src]

xmpp_stanza_set_text_with_size

Be aware that calling this method changes the internal type of stanza to XMPP_STANZA_TEXT.

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

Trait Implementations

impl<'cx> Debug for Stanza<'cx>
[src]

[src]

Formats the value using the given formatter. Read more

impl<'cx> Hash for Stanza<'cx>
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl<'cx> Display for Stanza<'cx>
[src]

impl<'cx> Clone for Stanza<'cx>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<'cx> PartialEq for Stanza<'cx>
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

1.0.0
[src]

This method tests for !=.

impl<'cx> Eq for Stanza<'cx>
[src]

impl<'cx> Drop for Stanza<'cx>
[src]

impl<'cx> Send for Stanza<'cx>
[src]

impl<'cx> Into<StanzaRef<'cx>> for Stanza<'cx>
[src]

[src]

Performs the conversion.

impl<'cx> Into<StanzaMutRef<'cx>> for Stanza<'cx>
[src]

[src]

Performs the conversion.

Auto Trait Implementations

impl<'cx> !Sync for Stanza<'cx>