Struct xpcom::interfaces::nsIThreadRetargetableStreamListener [] [src]

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

interface nsIThreadRetargetableStreamListener : nsISupports

/**
 * nsIThreadRetargetableStreamListener
 *
 * To be used by classes which implement nsIStreamListener and whose
 * OnDataAvailable callback may be retargeted for delivery off the main thread.
 */

Methods

impl nsIThreadRetargetableStreamListener
[src]

[src]

Cast this nsIThreadRetargetableStreamListener to one of its base interfaces.

impl nsIThreadRetargetableStreamListener
[src]

[src]

/**
   * Checks this listener and any next listeners it may have to verify that
   * they can receive OnDataAvailable off the main thread. It is the
   * responsibility of the implementing class to decide on the criteria to
   * determine if retargeted delivery of these methods is possible, but it must
   * check any and all nsIStreamListener objects that might be called in the
   * listener chain.
   *
   * An exception should be thrown if a listener in the chain does not
   * support retargeted delivery, i.e. if the next listener does not implement
   * nsIThreadRetargetableStreamListener, or a call to its checkListenerChain()
   * fails.
   */

void checkListenerChain ();

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

IID: nsIID = nsID(4213376184, 63535, 17459, [175, 104, 216, 116, 162, 235, 189, 193])

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

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIThreadRetargetableStreamListener
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.