Struct xpcom::interfaces::nsICrashService
[−]
[src]
#[repr(C)]pub struct nsICrashService { /* fields omitted */ }
interface nsICrashService : nsISupports
Methods
impl nsICrashService
[src]
pub fn coerce<T: nsICrashServiceCoerce>(&self) -> &T
[src]
Cast this nsICrashService
to one of its base interfaces.
impl nsICrashService
[src]
pub const PROCESS_TYPE_MAIN: i64
PROCESS_TYPE_MAIN: i64 = 0
pub const PROCESS_TYPE_CONTENT: i64
PROCESS_TYPE_CONTENT: i64 = 1
pub const PROCESS_TYPE_PLUGIN: i64
PROCESS_TYPE_PLUGIN: i64 = 2
pub const PROCESS_TYPE_GMPLUGIN: i64
PROCESS_TYPE_GMPLUGIN: i64 = 3
pub const PROCESS_TYPE_GPU: i64
PROCESS_TYPE_GPU: i64 = 4
pub const CRASH_TYPE_CRASH: i64
CRASH_TYPE_CRASH: i64 = 0
pub const CRASH_TYPE_HANG: i64
CRASH_TYPE_HANG: i64 = 1
pub unsafe fn AddCrash(
&self,
processType: int32_t,
crashType: int32_t,
id: &nsAString,
_retval: *mut *const nsISupports
) -> nsresult
[src]
&self,
processType: int32_t,
crashType: int32_t,
id: &nsAString,
_retval: *mut *const nsISupports
) -> nsresult
/**
* 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>
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 nsICrashService
[src]
const IID: nsIID
IID: nsIID = nsID(4128077541, 25283, 20312, [137, 246, 183, 38, 194, 183, 188, 32])
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 nsICrashService
[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 nsICrashService
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.