Struct xpcom::interfaces::nsIHangDetails
[−]
[src]
#[repr(C)]pub struct nsIHangDetails { /* fields omitted */ }
interface nsIHangDetails : nsISupports
/**
* A scriptable interface for getting information about a BHR detected hang.
* This is the type of the subject of the "bhr-thread-hang" observer topic.
*/
Methods
impl nsIHangDetails
[src]
pub fn coerce<T: nsIHangDetailsCoerce>(&self) -> &T
[src]
Cast this nsIHangDetails
to one of its base interfaces.
impl nsIHangDetails
[src]
pub unsafe fn GetDuration(&self, aDuration: *mut uint32_t) -> nsresult
[src]
/**
* The detected duration of the hang.
*/
readonly attribute uint32_t duration;
pub unsafe fn GetThread(&self, aThread: &mut nsACString) -> nsresult
[src]
/**
* The name of the thread which hung.
*/
readonly attribute ACString thread;
pub unsafe fn GetRunnableName(&self, aRunnableName: &mut nsACString) -> nsresult
[src]
/**
* The name of the runnable which hung if it hung on the main thread.
*/
readonly attribute ACString runnableName;
pub unsafe fn GetProcess(&self, aProcess: &mut nsACString) -> nsresult
[src]
/**
* The type of process which produced the hang. This should be either:
* "default", "content", or "gpu".
*/
readonly attribute ACString process;
pub unsafe fn GetRemoteType(&self, aRemoteType: &mut nsAString) -> nsresult
[src]
/**
* The remote type of the content process which produced the hang.
*/
readonly attribute AString remoteType;
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 nsIHangDetails
[src]
const IID: nsIID
IID: nsIID = nsID(601243647, 14550, 16387, [156, 87, 44, 144, 172, 161, 24, 10])
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 nsIHangDetails
[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 nsIHangDetails
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.