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]
pub fn coerce<T: nsIPushDataCoerce>(&self) -> &T
[src]
Cast this nsIPushData
to one of its base interfaces.
impl nsIPushData
[src]
pub unsafe fn Text(&self, _retval: &mut nsAString) -> nsresult
[src]
/** Extracts the data as a UTF-8 text string. */
DOMString text ();
pub unsafe fn Binary(
&self,
dataLen: *mut uint32_t,
data: *mut *mut uint8_t
) -> nsresult
[src]
&self,
dataLen: *mut uint32_t,
data: *mut *mut uint8_t
) -> nsresult
/** 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>
pub fn coerce<T: nsISupportsCoerce>(&self) -> &T
[src]
Cast this nsISupports
to one of its base interfaces.
pub unsafe fn QueryInterface(
&self,
uuid: &nsIID,
result: *mut *mut c_void
) -> nsresult
[src]
&self,
uuid: &nsIID,
result: *mut *mut c_void
) -> nsresult
void QueryInterface (in nsIIDRef uuid, [iid_is (uuid), retval] out nsQIResult result);
pub unsafe fn AddRef(&self) -> nsrefcnt
[src]
[noscript,notxpcom] nsrefcnt AddRef ();
pub unsafe fn Release(&self) -> nsrefcnt
[src]
[noscript,notxpcom] nsrefcnt Release ();
Trait Implementations
impl XpCom for nsIPushData
[src]
const IID: nsIID
IID: nsIID = nsID(3754226001, 52909, 16607, [142, 183, 122, 122, 103, 197, 75, 22])
fn query_interface<T: XpCom>(&self) -> Option<RefPtr<T>>
[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]
unsafe fn addref(&self)
[src]
Increment the reference count.
unsafe fn release(&self)
[src]
Decrement the reference count, potentially freeing backing memory.
impl Deref for nsIPushData
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.