Struct xpcom::interfaces::nsIPushErrorReporter [] [src]

#[repr(C)]
pub struct nsIPushErrorReporter { /* fields omitted */ }

interface nsIPushErrorReporter : nsISupports

Methods

impl nsIPushErrorReporter
[src]

[src]

Cast this nsIPushErrorReporter to one of its base interfaces.

impl nsIPushErrorReporter
[src]

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.
  */

ACK_DECRYPTION_ERROR: i64 = 1

ACK_NOT_DELIVERED: i64 = 2

UNSUBSCRIBE_MANUAL: i64 = 3
/**
   * Unsubscribe reasons, reported when the service drops a subscription.
   */

UNSUBSCRIBE_QUOTA_EXCEEDED: i64 = 4

UNSUBSCRIBE_PERMISSION_REVOKED: i64 = 5

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.
   */

DELIVERY_UNHANDLED_REJECTION: i64 = 7

DELIVERY_INTERNAL_ERROR: i64 = 8

[src]

/**
   * 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>

[src]

Cast this nsISupports to one of its base interfaces.

[src]

void QueryInterface (in nsIIDRef uuid, [iid_is (uuid), retval] out nsQIResult result);

[src]

[noscript,notxpcom] nsrefcnt AddRef ();

[src]

[noscript,notxpcom] nsrefcnt Release ();

Trait Implementations

impl XpCom for nsIPushErrorReporter
[src]

IID: nsIID = nsID(3045214713, 6660, 18636, [188, 32, 44, 153, 45, 100, 199, 62])

[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]

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIPushErrorReporter
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.