Struct xpcom::interfaces::nsIAsyncShutdownClient [] [src]

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

interface nsIAsyncShutdownClient : nsISupports

Methods

impl nsIAsyncShutdownClient
[src]

[src]

Cast this nsIAsyncShutdownClient to one of its base interfaces.

impl nsIAsyncShutdownClient
[src]

[src]

/**
 * A client for a nsIAsyncShutdownBarrier.
 */
/**
   * The name of the barrier.
   */

readonly attribute AString name;

[src]

/**
   * Add a blocker.
   *
   * After a `blocker` has been added with `addBlocker`, if it is not
   * removed with `removeBlocker`, this will, by design, eventually
   * CAUSE A CRASH.
   *
   * Calling `addBlocker` once nsIAsyncShutdownBarrier::wait() has been
   * called on the owning barrier returns an error.
   *
   * @param aBlocker The blocker to add. Once
   * nsIAsyncShutdownBarrier::wait() has been called, it will not
   * call its `aOnReady` callback until all blockers have been
   * removed, each  by a call to `removeBlocker`.
   * @param aFileName The filename of the callsite, as given by `__FILE__`.
   * @param aLineNumber The linenumber of the callsite, as given by `__LINE__`.
   * @param aStack Information on the stack that lead to this call. Generally
   * empty when called from C++.
   */

void addBlocker (in nsIAsyncShutdownBlocker aBlocker, in AString aFileName, in long aLineNumber, in AString aStack);

[src]

/**
   * Remove a blocker.
   *
   * @param aBlocker A blocker previously added to this client through
   * `addBlocker`. Noop if the blocker has never been added or has been
   * removed already.
   */

void removeBlocker (in nsIAsyncShutdownBlocker aBlocker);

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

IID: nsIID = nsID(3523416137, 47504, 17314, [149, 190, 89, 248, 163, 202, 89, 84])

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

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIAsyncShutdownClient
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.