Struct xpcom::interfaces::nsIRequestObserver
[−]
[src]
#[repr(C)]pub struct nsIRequestObserver { /* fields omitted */ }
interface nsIRequestObserver : nsISupports
/**
* nsIRequestObserver
*/
Methods
impl nsIRequestObserver
[src]
pub fn coerce<T: nsIRequestObserverCoerce>(&self) -> &T
[src]
Cast this nsIRequestObserver
to one of its base interfaces.
impl nsIRequestObserver
[src]
pub unsafe fn OnStartRequest(
&self,
aRequest: *const nsIRequest,
aContext: *const nsISupports
) -> nsresult
[src]
&self,
aRequest: *const nsIRequest,
aContext: *const nsISupports
) -> nsresult
/**
* 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);
pub unsafe fn OnStopRequest(
&self,
aRequest: *const nsIRequest,
aContext: *const nsISupports,
aStatusCode: nsresult
) -> nsresult
[src]
&self,
aRequest: *const nsIRequest,
aContext: *const nsISupports,
aStatusCode: nsresult
) -> nsresult
/**
* 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>
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 nsIRequestObserver
[src]
const IID: nsIID
IID: nsIID = nsID(4254196448, 5249, 4563, [147, 51, 0, 16, 75, 160, 253, 64])
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 nsIRequestObserver
[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 nsIRequestObserver
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.