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]
pub fn coerce<T: nsIAuthPromptCallbackCoerce>(&self) -> &T
[src]
Cast this nsIAuthPromptCallback
to one of its base interfaces.
impl nsIAuthPromptCallback
[src]
pub unsafe fn OnAuthAvailable(
&self,
aContext: *const nsISupports,
aAuthInfo: *const nsIAuthInformation
) -> nsresult
[src]
&self,
aContext: *const nsISupports,
aAuthInfo: *const nsIAuthInformation
) -> nsresult
/**
* 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);
pub unsafe fn OnAuthCancelled(
&self,
aContext: *const nsISupports,
userCancel: bool
) -> nsresult
[src]
&self,
aContext: *const nsISupports,
userCancel: bool
) -> nsresult
/**
* 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>
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 nsIAuthPromptCallback
[src]
const IID: nsIID
IID: nsIID = nsID(3183708119, 11561, 19628, [146, 241, 221, 117, 215, 134, 99, 29])
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 nsIAuthPromptCallback
[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 nsIAuthPromptCallback
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.