Struct xpcom::interfaces::nsIPushSubscription
[−]
[src]
#[repr(C)]pub struct nsIPushSubscription { /* fields omitted */ }
interface nsIPushSubscription : nsISupports
/**
* A push subscription, passed as an argument to a subscription callback.
* Similar to the `PushSubscription` WebIDL interface.
*/
Methods
impl nsIPushSubscription
[src]
pub fn coerce<T: nsIPushSubscriptionCoerce>(&self) -> &T
[src]
Cast this nsIPushSubscription
to one of its base interfaces.
impl nsIPushSubscription
[src]
pub unsafe fn GetEndpoint(&self, aEndpoint: &mut nsAString) -> nsresult
[src]
readonly attribute DOMString endpoint;
pub unsafe fn GetPushCount(&self, aPushCount: *mut int64_t) -> nsresult
[src]
readonly attribute long long pushCount;
pub unsafe fn GetLastPush(&self, aLastPush: *mut int64_t) -> nsresult
[src]
readonly attribute long long lastPush;
pub unsafe fn GetQuota(&self, aQuota: *mut int32_t) -> nsresult
[src]
readonly attribute long quota;
pub unsafe fn GetIsSystemSubscription(
&self,
aIsSystemSubscription: *mut bool
) -> nsresult
[src]
&self,
aIsSystemSubscription: *mut bool
) -> nsresult
readonly attribute bool isSystemSubscription;
pub unsafe fn QuotaApplies(&self, _retval: *mut bool) -> nsresult
[src]
bool quotaApplies ();
pub unsafe fn IsExpired(&self, _retval: *mut bool) -> nsresult
[src]
bool isExpired ();
pub unsafe fn GetKey(
&self,
name: &nsAString,
keyLen: *mut uint32_t,
key: *mut *mut uint8_t
) -> nsresult
[src]
&self,
name: &nsAString,
keyLen: *mut uint32_t,
key: *mut *mut uint8_t
) -> nsresult
void getKey (in DOMString name, [optional] out uint32_t keyLen, [array, size_is (keyLen), retval] out uint8_t key);
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 nsIPushSubscription
[src]
const IID: nsIID
IID: nsIID = nsID(501427548, 60040, 19614, [150, 38, 176, 50, 189, 135, 244, 21])
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 nsIPushSubscription
[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 nsIPushSubscription
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.