Struct xpcom::interfaces::nsIPushMessage
[−]
[src]
#[repr(C)]pub struct nsIPushMessage { /* fields omitted */ }
interface nsIPushMessage : nsISupports
/**
* The subject of a `push-message` observer notification. |data| may be |null|
* for messages without data.
*/
Methods
impl nsIPushMessage
[src]
pub fn coerce<T: nsIPushMessageCoerce>(&self) -> &T
[src]
Cast this nsIPushMessage
to one of its base interfaces.
impl nsIPushMessage
[src]
pub unsafe fn GetPrincipal(
&self,
aPrincipal: *mut *const nsIPrincipal
) -> nsresult
[src]
&self,
aPrincipal: *mut *const nsIPrincipal
) -> nsresult
readonly attribute nsIPrincipal principal;
pub unsafe fn GetData(&self, aData: *mut *const nsIPushData) -> nsresult
[src]
readonly attribute nsIPushData 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 nsIPushMessage
[src]
const IID: nsIID
IID: nsIID = nsID(3117441994, 3647, 20462, [190, 75, 234, 145, 3, 38, 52, 51])
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 nsIPushMessage
[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 nsIPushMessage
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.