Struct xpcom::interfaces::nsIAuthPromptProvider [] [src]

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

interface nsIAuthPromptProvider : nsISupports

Methods

impl nsIAuthPromptProvider
[src]

[src]

Cast this nsIAuthPromptProvider to one of its base interfaces.

impl nsIAuthPromptProvider
[src]

PROMPT_NORMAL: i64 = 0
/**
     * Normal (non-proxy) prompt request.
     */

PROMPT_PROXY: i64 = 1
/**
     * Proxy auth request.
     */

[src]

/**
     * Request a prompt interface for the given prompt reason;
     * @throws NS_ERROR_NOT_AVAILABLE if no prompt is allowed or
     * available for the given reason.
     *
     * @param aPromptReason   The reason for the auth prompt;
     *                        one of #PROMPT_NORMAL or #PROMPT_PROXY
     * @param iid             The desired interface, e.g.
     *                        NS_GET_IID(nsIAuthPrompt2).
     * @returns an nsIAuthPrompt2 interface, or throws NS_ERROR_NOT_AVAILABLE
     */

void getAuthPrompt (in uint32_t aPromptReason, in nsIIDRef iid, [iid_is (iid), retval] out nsQIResult result);

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

IID: nsIID = nsID(3181232378, 26830, 18384, [136, 89, 100, 24, 194, 174, 133, 118])

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

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIAuthPromptProvider
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.