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]

[src]

Cast this nsIProtocolProxyCallback to one of its base interfaces.

impl nsIProtocolProxyCallback
[src]

[src]

/**
   * 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>

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

IID: nsIID = nsID(4223070198, 3266, 19865, [141, 111, 10, 18, 180, 98, 189, 235])

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

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIProtocolProxyCallback
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.