Struct xpcom::interfaces::nsICrashService [] [src]

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

interface nsICrashService : nsISupports

Methods

impl nsICrashService
[src]

[src]

Cast this nsICrashService to one of its base interfaces.

impl nsICrashService
[src]

PROCESS_TYPE_MAIN: i64 = 0

PROCESS_TYPE_CONTENT: i64 = 1

PROCESS_TYPE_PLUGIN: i64 = 2

PROCESS_TYPE_GMPLUGIN: i64 = 3

PROCESS_TYPE_GPU: i64 = 4

CRASH_TYPE_CRASH: i64 = 0

CRASH_TYPE_HANG: i64 = 1

[src]

/**
   * Records the occurrence of a crash.
   *
   * @param processType
   *        One of the PROCESS_TYPE constants defined below.
   * @param crashType
   *        One of the CRASH_TYPE constants defined below.
   * @param id
   *        Crash ID. Likely a UUID.
   *
   * @return {Promise} A promise that resolves after the crash has been stored
   */

nsISupports addCrash (in long processType, in long crashType, in AString id);

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

IID: nsIID = nsID(4128077541, 25283, 20312, [137, 246, 183, 38, 194, 183, 188, 32])

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

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsICrashService
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.