Struct xpcom::interfaces::nsIAuthPromptCallback [] [src]

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

interface nsIAuthPromptCallback : nsISupports

/**
 * Interface for callback methods for the asynchronous nsIAuthPrompt2 method.
 * Callers MUST call exactly one method if nsIAuthPrompt2::promptPasswordAsync
 * returns successfully. They MUST NOT call any method on this interface before
 * promptPasswordAsync returns.
 */

Methods

impl nsIAuthPromptCallback
[src]

[src]

Cast this nsIAuthPromptCallback to one of its base interfaces.

impl nsIAuthPromptCallback
[src]

[src]

/**
   * Authentication information is available.
   *
   * @param aContext
   *        The context as passed to promptPasswordAsync
   * @param aAuthInfo
   *        Authentication information. Must be the same object that was passed
   *        to promptPasswordAsync.
   *
   * @note  Any exceptions thrown from this method should be ignored.
   */

void onAuthAvailable (in nsISupports aContext, in nsIAuthInformation aAuthInfo);

[src]

/**
   * Notification that the prompt was cancelled.
   *
   * @param aContext
   *        The context that was passed to promptPasswordAsync.
   * @param userCancel
   *        If false, this prompt was cancelled by calling the
   *        the cancel method on the nsICancelable; otherwise,
   *        it was cancelled by the user.
   */

void onAuthCancelled (in nsISupports aContext, in boolean userCancel);

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

IID: nsIID = nsID(3183708119, 11561, 19628, [146, 241, 221, 117, 215, 134, 99, 29])

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

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIAuthPromptCallback
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.