Struct xpcom::interfaces::nsIPushSubscriptionCallback
[−]
[src]
#[repr(C)]pub struct nsIPushSubscriptionCallback { /* fields omitted */ }
interface nsIPushSubscriptionCallback : nsISupports
/**
* Called by methods that return a push subscription. A non-success
* |status| indicates that there was a problem returning the
* subscription, and the |subscription| argument should be ignored. Otherwise,
* |subscription| will point to a valid push subscription, or |null| if the
* subscription does not exist.
*/
Methods
impl nsIPushSubscriptionCallback
[src]
pub fn coerce<T: nsIPushSubscriptionCallbackCoerce>(&self) -> &T
[src]
Cast this nsIPushSubscriptionCallback
to one of its base interfaces.
impl nsIPushSubscriptionCallback
[src]
pub unsafe fn OnPushSubscription(
&self,
status: nsresult,
subscription: *const nsIPushSubscription
) -> nsresult
[src]
&self,
status: nsresult,
subscription: *const nsIPushSubscription
) -> nsresult
void onPushSubscription (in nsresult status, in nsIPushSubscription subscription);
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 nsIPushSubscriptionCallback
[src]
const IID: nsIID
IID: nsIID = nsID(395952244, 40274, 18096, [171, 60, 192, 151, 144, 115, 47, 111])
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 nsIPushSubscriptionCallback
[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 nsIPushSubscriptionCallback
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.