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]

[src]

Cast this nsIKeygenThread to one of its base interfaces.

impl nsIKeygenThread
[src]

[src]

/**
   * 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);

[src]

/**
   * 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>

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

IID: nsIID = nsID(2266145347, 21817, 17532, [159, 71, 134, 83, 244, 12, 58, 9])

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

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIKeygenThread
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.