Struct xpcom::interfaces::nsIAuthPromptProvider
[−]
[src]
#[repr(C)]pub struct nsIAuthPromptProvider { /* fields omitted */ }
interface nsIAuthPromptProvider : nsISupports
Methods
impl nsIAuthPromptProvider
[src]
pub fn coerce<T: nsIAuthPromptProviderCoerce>(&self) -> &T
[src]
Cast this nsIAuthPromptProvider
to one of its base interfaces.
impl nsIAuthPromptProvider
[src]
pub const PROMPT_NORMAL: i64
PROMPT_NORMAL: i64 = 0
/**
* Normal (non-proxy) prompt request.
*/
pub const PROMPT_PROXY: i64
PROMPT_PROXY: i64 = 1
/**
* Proxy auth request.
*/
pub unsafe fn GetAuthPrompt(
&self,
aPromptReason: uint32_t,
iid: &nsIID,
result: *mut *mut c_void
) -> nsresult
[src]
&self,
aPromptReason: uint32_t,
iid: &nsIID,
result: *mut *mut c_void
) -> nsresult
/**
* 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>
pub fn coerce<T: nsISupportsCoerce>(&self) -> &T
[src]
Cast this nsISupports
to one of its base interfaces.
pub unsafe fn QueryInterface(
&self,
uuid: &nsIID,
result: *mut *mut c_void
) -> nsresult
[src]
&self,
uuid: &nsIID,
result: *mut *mut c_void
) -> nsresult
void QueryInterface (in nsIIDRef uuid, [iid_is (uuid), retval] out nsQIResult result);
pub unsafe fn AddRef(&self) -> nsrefcnt
[src]
[noscript,notxpcom] nsrefcnt AddRef ();
pub unsafe fn Release(&self) -> nsrefcnt
[src]
[noscript,notxpcom] nsrefcnt Release ();
Trait Implementations
impl XpCom for nsIAuthPromptProvider
[src]
const IID: nsIID
IID: nsIID = nsID(3181232378, 26830, 18384, [136, 89, 100, 24, 194, 174, 133, 118])
fn query_interface<T: XpCom>(&self) -> Option<RefPtr<T>>
[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]
unsafe fn addref(&self)
[src]
Increment the reference count.
unsafe fn release(&self)
[src]
Decrement the reference count, potentially freeing backing memory.
impl Deref for nsIAuthPromptProvider
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.