Struct xpcom::interfaces::nsIHangReport
[−]
[src]
#[repr(C)]pub struct nsIHangReport { /* fields omitted */ }
interface nsIHangReport : nsISupports
/**
* When a content process hangs, Gecko notifies "process-hang-report" observers
* and passes an nsIHangReport for the subject parameter. There is at most one
* nsIHangReport associated with a given content process. As long as the content
* process stays stuck, the "process-hang-report" observer will continue to be
* notified at regular intervals (approximately once per second). The content
* process will continue to run uninhibitedly during this time.
*/
Methods
impl nsIHangReport
[src]
pub fn coerce<T: nsIHangReportCoerce>(&self) -> &T
[src]
Cast this nsIHangReport
to one of its base interfaces.
impl nsIHangReport
[src]
pub const SLOW_SCRIPT: i64
SLOW_SCRIPT: i64 = 1
pub const PLUGIN_HANG: i64
PLUGIN_HANG: i64 = 2
pub unsafe fn GetHangType(&self, aHangType: *mut uint32_t) -> nsresult
[src]
readonly attribute unsigned long hangType;
pub unsafe fn GetScriptBrowser(
&self,
aScriptBrowser: *mut *const nsIDOMElement
) -> nsresult
[src]
&self,
aScriptBrowser: *mut *const nsIDOMElement
) -> nsresult
readonly attribute nsIDOMElement scriptBrowser;
pub unsafe fn GetScriptFileName(
&self,
aScriptFileName: &mut nsACString
) -> nsresult
[src]
&self,
aScriptFileName: &mut nsACString
) -> nsresult
readonly attribute ACString scriptFileName;
pub unsafe fn GetAddonId(&self, aAddonId: &mut nsAString) -> nsresult
[src]
readonly attribute AString addonId;
pub unsafe fn GetPluginName(&self, aPluginName: &mut nsACString) -> nsresult
[src]
readonly attribute ACString pluginName;
pub unsafe fn UserCanceled(&self) -> nsresult
[src]
void userCanceled ();
pub unsafe fn TerminateScript(&self) -> nsresult
[src]
void terminateScript ();
pub unsafe fn TerminateGlobal(&self) -> nsresult
[src]
void terminateGlobal ();
pub unsafe fn TerminatePlugin(&self) -> nsresult
[src]
void terminatePlugin ();
pub unsafe fn BeginStartingDebugger(&self) -> nsresult
[src]
void beginStartingDebugger ();
pub unsafe fn EndStartingDebugger(&self) -> nsresult
[src]
void endStartingDebugger ();
pub unsafe fn IsReportForBrowser(
&self,
aFrameLoader: *const nsIFrameLoader,
_retval: *mut bool
) -> nsresult
[src]
&self,
aFrameLoader: *const nsIFrameLoader,
_retval: *mut bool
) -> nsresult
bool isReportForBrowser (in nsIFrameLoader aFrameLoader);
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 nsIHangReport
[src]
const IID: nsIID
IID: nsIID = nsID(1607465913, 48738, 18865, [184, 161, 54, 232, 32, 120, 122, 116])
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 nsIHangReport
[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 nsIHangReport
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.