Struct xpcom::interfaces::nsIPushData [] [src]

#[repr(C)]
pub struct nsIPushData { /* fields omitted */ }

interface nsIPushData : nsISupports

/**
 * Provides methods for retrieving push message data in different formats.
 * This interface resembles the `PushMessageData` WebIDL interface.
 */

Methods

impl nsIPushData
[src]

[src]

Cast this nsIPushData to one of its base interfaces.

impl nsIPushData
[src]

[src]

/** Extracts the data as a UTF-8 text string. */

DOMString text ();

[src]

/** Extracts the raw binary data. */

void binary ([optional] out uint32_t dataLen, [array, size_is (dataLen), retval] out uint8_t data);

Methods from Deref<Target = nsISupports>

[src]

Cast this nsISupports to one of its base interfaces.

[src]

void QueryInterface (in nsIIDRef uuid, [iid_is (uuid), retval] out nsQIResult result);

[src]

[noscript,notxpcom] nsrefcnt AddRef ();

[src]

[noscript,notxpcom] nsrefcnt Release ();

Trait Implementations

impl XpCom for nsIPushData
[src]

IID: nsIID = nsID(3754226001, 52909, 16607, [142, 183, 122, 122, 103, 197, 75, 22])

[src]

Perform a QueryInterface call on this object, attempting to dynamically cast it to the requested interface type. Returns Some(RefPtr) if the cast succeeded, and None otherwise. Read more

impl RefCounted for nsIPushData
[src]

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIPushData
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.