Struct xpcom::interfaces::nsICancelable [] [src]

#[repr(C)]
pub struct nsICancelable { /* fields omitted */ }

interface nsICancelable : nsISupports

/**
 * This interface provides a means to cancel an operation that is in progress.
 */

Methods

impl nsICancelable
[src]

[src]

Cast this nsICancelable to one of its base interfaces.

impl nsICancelable
[src]

[src]

/**
   * Call this method to request that this object abort whatever operation it
   * may be performing.
   *
   * @param aReason
   *        Pass a failure code to indicate the reason why this operation is
   *        being canceled.  It is an error to pass a success code.
   */

void cancel (in nsresult aReason);

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

IID: nsIID = nsID(3645554848, 47896, 18104, [132, 78, 132, 21, 144, 100, 176, 189])

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

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsICancelable
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.