Struct xpcom::interfaces::nsIRequestObserverProxy [] [src]

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

interface nsIRequestObserverProxy : nsIRequestObserver

/**
 * A request observer proxy is used to ship data over to another thread
 * specified by the thread's dispatch target. The "true" request observer's
 * methods are invoked on the other thread.
 *
 * This interface only provides the initialization needed after construction.
 * Otherwise, these objects are used simply as nsIRequestObserver's.
 */

Methods

impl nsIRequestObserverProxy
[src]

[src]

Cast this nsIRequestObserverProxy to one of its base interfaces.

impl nsIRequestObserverProxy
[src]

[src]

/**
     * Initializes an nsIRequestObserverProxy.
     *
     * @param observer - receives observer notifications on the main thread
     * @param context  - the context argument that will be passed to OnStopRequest
     *                   and OnStartRequest. This has to be stored permanently on
     *                   initialization because it sometimes can't be
     *                   AddRef/Release'd off-main-thread.
     */

void init (in nsIRequestObserver observer, in nsISupports context);

Methods from Deref<Target = nsIRequestObserver>

[src]

Cast this nsIRequestObserver to one of its base interfaces.

[src]

/**
     * Called to signify the beginning of an asynchronous request.
     *
     * @param aRequest request being observed
     * @param aContext user defined context
     *
     * An exception thrown from onStartRequest has the side-effect of
     * causing the request to be canceled.
     */

void onStartRequest (in nsIRequest aRequest, in nsISupports aContext);

[src]

/**
     * Called to signify the end of an asynchronous request.  This
     * call is always preceded by a call to onStartRequest.
     *
     * @param aRequest request being observed
     * @param aContext user defined context
     * @param aStatusCode reason for stopping (NS_OK if completed successfully)
     *
     * An exception thrown from onStopRequest is generally ignored.
     */

void onStopRequest (in nsIRequest aRequest, in nsISupports aContext, in nsresult aStatusCode);

Trait Implementations

impl XpCom for nsIRequestObserverProxy
[src]

IID: nsIID = nsID(3266339153, 7160, 20207, [174, 169, 21, 50, 241, 47, 90, 16])

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

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIRequestObserverProxy
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.