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]
pub fn coerce<T: nsIThreadRetargetableStreamListenerCoerce>(&self) -> &T
[src]
Cast this nsIThreadRetargetableStreamListener
to one of its base interfaces.
impl nsIThreadRetargetableStreamListener
[src]
pub unsafe fn CheckListenerChain(&self) -> nsresult
[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>
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 nsIThreadRetargetableStreamListener
[src]
const IID: nsIID
IID: nsIID = nsID(4213376184, 63535, 17459, [175, 104, 216, 116, 162, 235, 189, 193])
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 nsIThreadRetargetableStreamListener
[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 nsIThreadRetargetableStreamListener
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.