Struct xpcom::interfaces::nsIKeygenThread
[−]
[src]
#[repr(C)]pub struct nsIKeygenThread { /* fields omitted */ }
interface nsIKeygenThread : nsISupports
/**
* nsIKeygenThread
* This is used to communicate with the thread generating a key pair,
* to be used by the dialog displaying status information.
*/
Methods
impl nsIKeygenThread
[src]
pub fn coerce<T: nsIKeygenThreadCoerce>(&self) -> &T
[src]
Cast this nsIKeygenThread
to one of its base interfaces.
impl nsIKeygenThread
[src]
pub unsafe fn StartKeyGeneration(
&self,
observer: *const nsIObserver
) -> nsresult
[src]
&self,
observer: *const nsIObserver
) -> nsresult
/**
* startKeyGeneration - run the thread
* A user interface using this interface needs to
* call this method as soon as the status information
* is displaying. This will trigger key generation.
* To allow the closure of the status information,
* the thread needs a handle to an observer.
*
* observer will be called on the UI thread.
* When the key generation is done, the observe method will
* be called with a topic of "keygen-finished" and null data
* and subject.
*/
[must_use] void startKeyGeneration (in nsIObserver observer);
pub unsafe fn UserCanceled(
&self,
threadAlreadyClosedDialog: *mut bool
) -> nsresult
[src]
&self,
threadAlreadyClosedDialog: *mut bool
) -> nsresult
/**
* userCanceled - notify the thread
* If the user canceled, the thread is no longer allowed to
* close the dialog. However, if the thread already closed
* it, we are not allowed to close it.
*/
[must_use] void userCanceled (out boolean threadAlreadyClosedDialog);
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 nsIKeygenThread
[src]
const IID: nsIID
IID: nsIID = nsID(2266145347, 21817, 17532, [159, 71, 134, 83, 244, 12, 58, 9])
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 nsIKeygenThread
[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 nsIKeygenThread
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.