Struct xpcom::interfaces::nsIStreamLoaderObserver [] [src]

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

interface nsIStreamLoaderObserver : nsISupports

Methods

impl nsIStreamLoaderObserver
[src]

[src]

Cast this nsIStreamLoaderObserver to one of its base interfaces.

impl nsIStreamLoaderObserver
[src]

[src]

/**
     * Called when the entire stream has been loaded.
     *
     * @param loader the stream loader that loaded the stream.
     * @param ctxt the context parameter of the underlying channel
     * @param status the status of the underlying channel
     * @param resultLength the length of the data loaded
     * @param result the data
     *
     * This method will always be called asynchronously by the
     * nsIStreamLoader involved, on the thread that called the
     * loader's init() method.
     *
     * If the observer wants to take over responsibility for the
     * data buffer (result), it returns NS_SUCCESS_ADOPTED_DATA
     * in place of NS_OK as its success code. The loader will then
     * "forget" about the data and not free() it after
     * onStreamComplete() returns; observer must call free()
     * when the data is no longer required.
     */

void onStreamComplete (in nsIStreamLoader loader, in nsISupports ctxt, in nsresult status, in unsigned long resultLength, [array, size_is (resultLength), const] in octet result);

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

IID: nsIID = nsID(899643792, 54505, 4563, [161, 165, 0, 80, 4, 28, 175, 68])

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

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIStreamLoaderObserver
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.