Struct xpcom::interfaces::nsIAsyncShutdownService [] [src]

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

interface nsIAsyncShutdownService : nsISupports

/**
 * A service that allows registering shutdown-time dependencies.
 */

Methods

impl nsIAsyncShutdownService
[src]

[src]

Cast this nsIAsyncShutdownService to one of its base interfaces.

impl nsIAsyncShutdownService
[src]

[src]

/**
   * Create a new barrier.
   *
   * By convention, the name should respect the following format:
   * "MyModuleName: Doing something while it's time"
   * e.g.
   * "OS.File: Waiting for clients to flush before shutting down"
   *
   * This attribute is uploaded as part of crash reports.
   */

nsIAsyncShutdownBarrier makeBarrier (in AString aName);

[src]

/**
   * Barrier for notification profile-before-change.
   */

readonly attribute nsIAsyncShutdownClient profileBeforeChange;

[src]

/**
   * Barrier for notification profile-change-teardown.
   */

readonly attribute nsIAsyncShutdownClient profileChangeTeardown;

[src]

/**
   * Barrier for notification quit-application-granted.
   */

readonly attribute nsIAsyncShutdownClient quitApplicationGranted;

[src]

/**
   * Barrier for notification profile-before-change-telemetry.
   */

readonly attribute nsIAsyncShutdownClient sendTelemetry;

[src]

/**
   * Barrier for notification web-workers-shutdown.
   */

readonly attribute nsIAsyncShutdownClient webWorkersShutdown;

[src]

/**
   * Barrier for notification xpcom-will-shutdown.
   */

readonly attribute nsIAsyncShutdownClient xpcomWillShutdown;

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

IID: nsIID = nsID(3677772920, 51296, 20068, [154, 99, 37, 183, 63, 137, 160, 22])

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

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIAsyncShutdownService
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.