Struct xpcom::interfaces::nsIJSInspector
[−]
[src]
#[repr(C)]pub struct nsIJSInspector { /* fields omitted */ }
interface nsIJSInspector : nsISupports
/**
* Utilities for running nested event loops, asking them to return, and
* keeping track of which ones are still running.
*/
Methods
impl nsIJSInspector
[src]
pub fn coerce<T: nsIJSInspectorCoerce>(&self) -> &T
[src]
Cast this nsIJSInspector
to one of its base interfaces.
impl nsIJSInspector
[src]
pub unsafe fn ExitNestedEventLoop(&self, _retval: *mut uint32_t) -> nsresult
[src]
/**
* Stop the youngest running enterNestedEventLoop call, asking it to return
* once it has finished processing the current event.
*
* The name 'exitNestedEventLoop' may be misleading if read too literally.
* The affected event loop does not return immediately when this method is
* called. Rather, this method simply returns to its caller; the affected
* loop's current event handler is allowed to run to completion; and then
* that loop returns without processing any more events.
*
* This method ignores loops that have already been stopped, and operates on
* the youngest loop that is still running. Each call to this method stops
* another running loop.
*
* @return depth The number of running enterNestedEventLoop calls
* remaining, now that one has been stopped.
*
* @throws NS_ERROR_FAILURE if there are no running enterNestedEventLoop calls.
*/
unsigned long exitNestedEventLoop ();
pub unsafe fn GetEventLoopNestLevel(
&self,
aEventLoopNestLevel: *mut uint32_t
) -> nsresult
[src]
&self,
aEventLoopNestLevel: *mut uint32_t
) -> nsresult
/**
* The number of running enterNestedEventLoop calls on the stack.
* This count does not include stopped enterNestedEventLoop calls.
*/
readonly attribute unsigned long eventLoopNestLevel;
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 nsIJSInspector
[src]
const IID: nsIID
IID: nsIID = nsID(1733873879, 59754, 19548, [188, 168, 59, 203, 229, 161, 89, 67])
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 nsIJSInspector
[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 nsIJSInspector
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.