Struct xpcom::interfaces::nsIDNSListener [] [src]

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

interface nsIDNSListener : nsISupports

/**
 * nsIDNSListener
 */

Methods

impl nsIDNSListener
[src]

[src]

Cast this nsIDNSListener to one of its base interfaces.

impl nsIDNSListener
[src]

[src]

/**
     * called when an asynchronous host lookup completes.
     *
     * @param aRequest
     *        the value returned from asyncResolve.
     * @param aRecord
     *        the DNS record corresponding to the hostname that was resolved.
     *        this parameter is null if there was an error.
     * @param aStatus
     *        if the lookup failed, this parameter gives the reason.
     */

void onLookupComplete (in nsICancelable aRequest, in nsIDNSRecord aRecord, 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 nsIDNSListener
[src]

IID: nsIID = nsID(668244990, 10252, 18912, [187, 170, 246, 32, 12, 35, 44, 61])

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

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIDNSListener
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.