Struct xpcom::interfaces::nsIPushErrorReporter
[−]
[src]
#[repr(C)]pub struct nsIPushErrorReporter { /* fields omitted */ }
interface nsIPushErrorReporter : nsISupports
Methods
impl nsIPushErrorReporter
[src]
pub fn coerce<T: nsIPushErrorReporterCoerce>(&self) -> &T
[src]
Cast this nsIPushErrorReporter
to one of its base interfaces.
impl nsIPushErrorReporter
[src]
pub const ACK_DELIVERED: i64
ACK_DELIVERED: i64 = 0
/**
* Ack types, reported when the Push service acknowledges an incoming message.
*
* Acks are sent before the message is dispatched to the service worker,
* since the server delays new messages until all outstanding ones have been
* acked. |reportDeliveryError| will be called if an error occurs in the
* worker's `push` event handler after acking the message.
*/
pub const ACK_DECRYPTION_ERROR: i64
ACK_DECRYPTION_ERROR: i64 = 1
pub const ACK_NOT_DELIVERED: i64
ACK_NOT_DELIVERED: i64 = 2
pub const UNSUBSCRIBE_MANUAL: i64
UNSUBSCRIBE_MANUAL: i64 = 3
/**
* Unsubscribe reasons, reported when the service drops a subscription.
*/
pub const UNSUBSCRIBE_QUOTA_EXCEEDED: i64
UNSUBSCRIBE_QUOTA_EXCEEDED: i64 = 4
pub const UNSUBSCRIBE_PERMISSION_REVOKED: i64
UNSUBSCRIBE_PERMISSION_REVOKED: i64 = 5
pub const DELIVERY_UNCAUGHT_EXCEPTION: i64
DELIVERY_UNCAUGHT_EXCEPTION: i64 = 6
/**
* Delivery error reasons, reported when a service worker fails to handle
* an incoming push message in its `push` event handler.
*/
pub const DELIVERY_UNHANDLED_REJECTION: i64
DELIVERY_UNHANDLED_REJECTION: i64 = 7
pub const DELIVERY_INTERNAL_ERROR: i64
DELIVERY_INTERNAL_ERROR: i64 = 8
pub unsafe fn ReportDeliveryError(
&self,
messageId: &nsAString,
reason: uint16_t
) -> nsresult
[src]
&self,
messageId: &nsAString,
reason: uint16_t
) -> nsresult
/**
* Reports a `push` event handler error to the Push service. |messageId| is
* an opaque string passed to `nsIPushNotifier.notifyPush{WithData}`.
* |reason| is a delivery error reason.
*/
void reportDeliveryError (in DOMString messageId, [optional] in uint16_t reason);
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 nsIPushErrorReporter
[src]
const IID: nsIID
IID: nsIID = nsID(3045214713, 6660, 18636, [188, 32, 44, 153, 45, 100, 199, 62])
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 nsIPushErrorReporter
[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 nsIPushErrorReporter
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.