Struct xpcom::interfaces::nsIProtectedAuthThread
[−]
[src]
#[repr(C)]pub struct nsIProtectedAuthThread { /* fields omitted */ }
interface nsIProtectedAuthThread : nsISupports
/**
* Used to communicate with the thread for logging on to a token with
* CKF_PROTECTED_AUTHENTICATION_PATH set.
*/
Methods
impl nsIProtectedAuthThread
[src]
pub fn coerce<T: nsIProtectedAuthThreadCoerce>(&self) -> &T
[src]
Cast this nsIProtectedAuthThread
to one of its base interfaces.
impl nsIProtectedAuthThread
[src]
pub unsafe fn Login(&self, observer: *const nsIObserver) -> nsresult
[src]
/**
* login - run the thread
* A user interface implementing this interface needs to
* call this method as soon as the message to the user is
* displayed. This will trigger login operation. No user
* cancellation is possible during login operation.
*
* When the login is done, the observe method of @observer will
* be called on the UI thread with a topic of "login-finished"
* and null data and subject.
*/
[must_use] void login (in nsIObserver observer);
pub unsafe fn GetSlot(&self, aSlot: *mut *const nsIPKCS11Slot) -> nsresult
[src]
/**
* The PKCS11 slot
*/
[must_use] readonly attribute nsIPKCS11Slot slot;
pub unsafe fn GetTokenName(&self, _retval: &mut nsAString) -> nsresult
[src]
/**
* Gets token to be logged in name.
*/
[must_use] AString getTokenName ();
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 nsIProtectedAuthThread
[src]
const IID: nsIID
IID: nsIID = nsID(1269988535, 35204, 19694, [140, 231, 155, 1, 76, 61, 9, 27])
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 nsIProtectedAuthThread
[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 nsIProtectedAuthThread
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.