Struct libstrophe::StanzaMutRef [] [src]

pub struct StanzaMutRef<'cx>(_);

Wrapper for mutable ref to Stanza, implements Deref to Stanza

You can obtain such objects by calling Stanza child search methods.

Methods from Deref<Target = Stanza<'cx>>

[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> Into<StanzaMutRef<'cx>> for Stanza<'cx>
[src]

[src]

Performs the conversion.

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

[src]

Formats the value using the given formatter. Read more

impl<'cx> Deref for StanzaMutRef<'cx>
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.

impl<'cx> DerefMut for StanzaMutRef<'cx>
[src]

[src]

Mutably dereferences the value.

Auto Trait Implementations

impl<'cx> Send for StanzaMutRef<'cx>

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