Struct xpcom::interfaces::nsIContentPrefCallback2 [] [src]

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

interface nsIContentPrefCallback2 : nsISupports

Methods

impl nsIContentPrefCallback2
[src]

[src]

Cast this nsIContentPrefCallback2 to one of its base interfaces.

impl nsIContentPrefCallback2
[src]

COMPLETE_OK: i64 = 0

COMPLETE_ERROR: i64 = 1

[src]

/**
 * The callback used by the above methods.
 */
/**
   * For the retrieval methods, this is called once for each retrieved
   * preference.  It is not called for other methods.
   *
   * @param pref  The retrieved preference.
   */

void handleResult (in nsIContentPref pref);

[src]

/**
   * Called when an error occurs.  This may be called multiple times before
   * handleCompletion is called.
   *
   * @param error  A number in Components.results describing the error.
   */

void handleError (in nsresult error);

[src]

/**
   * Called when the method finishes.  This will be called exactly once for
   * each method invocation, and afterward no other callback methods will be
   * called.
   *
   * @param reason  One of the COMPLETE_* values indicating the manner in which
   *                the method completed.
   */

void handleCompletion (in unsigned short reason);

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

IID: nsIID = nsID(437440321, 31208, 19727, [152, 153, 47, 123, 39, 197, 217, 161])

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

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIContentPrefCallback2
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.