Struct xpcom::interfaces::nsIProtocolProxyCallback
[−]
[src]
#[repr(C)]pub struct nsIProtocolProxyCallback { /* fields omitted */ }
interface nsIProtocolProxyCallback : nsISupports
/**
* This interface serves as a closure for nsIProtocolProxyService's
* asyncResolve method.
*/
Methods
impl nsIProtocolProxyCallback
[src]
pub fn coerce<T: nsIProtocolProxyCallbackCoerce>(&self) -> &T
[src]
Cast this nsIProtocolProxyCallback
to one of its base interfaces.
impl nsIProtocolProxyCallback
[src]
pub unsafe fn OnProxyAvailable(
&self,
aRequest: *const nsICancelable,
aChannel: *const nsIChannel,
aProxyInfo: *const nsIProxyInfo,
aStatus: nsresult
) -> nsresult
[src]
&self,
aRequest: *const nsICancelable,
aChannel: *const nsIChannel,
aProxyInfo: *const nsIProxyInfo,
aStatus: nsresult
) -> nsresult
/**
* This method is called when proxy info is available or when an error
* in the proxy resolution occurs.
*
* @param aRequest
* The value returned from asyncResolve.
* @param aChannel
* The channel passed to asyncResolve.
* @param aProxyInfo
* The resulting proxy info or null if there is no associated proxy
* info for aURI. As with the result of nsIProtocolProxyService's
* resolve method, a null result implies that a direct connection
* should be used.
* @param aStatus
* The status of the callback. This is a failure code if the request
* could not be satisfied, in which case the value of aStatus
* indicates the reason for the failure and aProxyInfo will be null.
*/
void onProxyAvailable (in nsICancelable aRequest, in nsIChannel aChannel, in nsIProxyInfo aProxyInfo, in nsresult aStatus);
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 nsIProtocolProxyCallback
[src]
const IID: nsIID
IID: nsIID = nsID(4223070198, 3266, 19865, [141, 111, 10, 18, 180, 98, 189, 235])
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 nsIProtocolProxyCallback
[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 nsIProtocolProxyCallback
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.