Struct xpcom::interfaces::nsIStreamLoaderObserver
[−]
[src]
#[repr(C)]pub struct nsIStreamLoaderObserver { /* fields omitted */ }
interface nsIStreamLoaderObserver : nsISupports
Methods
impl nsIStreamLoaderObserver
[src]
pub fn coerce<T: nsIStreamLoaderObserverCoerce>(&self) -> &T
[src]
Cast this nsIStreamLoaderObserver
to one of its base interfaces.
impl nsIStreamLoaderObserver
[src]
pub unsafe fn OnStreamComplete(
&self,
loader: *const nsIStreamLoader,
ctxt: *const nsISupports,
status: nsresult,
resultLength: uint32_t,
result: *const uint8_t
) -> nsresult
[src]
&self,
loader: *const nsIStreamLoader,
ctxt: *const nsISupports,
status: nsresult,
resultLength: uint32_t,
result: *const uint8_t
) -> nsresult
/**
* 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>
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 nsIStreamLoaderObserver
[src]
const IID: nsIID
IID: nsIID = nsID(899643792, 54505, 4563, [161, 165, 0, 80, 4, 28, 175, 68])
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 nsIStreamLoaderObserver
[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 nsIStreamLoaderObserver
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.