Struct xpcom::interfaces::nsIRequestObserver [] [src]

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

interface nsIRequestObserver : nsISupports

/**
 * nsIRequestObserver
 */

Methods

impl nsIRequestObserver
[src]

[src]

Cast this nsIRequestObserver to one of its base interfaces.

impl nsIRequestObserver
[src]

[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);

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

IID: nsIID = nsID(4254196448, 5249, 4563, [147, 51, 0, 16, 75, 160, 253, 64])

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

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIRequestObserver
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.