Struct xpcom::interfaces::nsIDNSServiceResolveListener [] [src]

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

interface nsIDNSServiceResolveListener : nsISupports

/**
 * The callback interface for service resolve
 */

Methods

impl nsIDNSServiceResolveListener
[src]

[src]

Cast this nsIDNSServiceResolveListener to one of its base interfaces.

impl nsIDNSServiceResolveListener
[src]

[src]

/**
   * Callback when the service is resolved successfully.
   * @param   aServiceInfo
   *          the info about the resolved service, where |host| and |port| are set.
   */

void onServiceResolved (in nsIDNSServiceInfo aServiceInfo);

[src]

/**
   * Callback when the service cannot be resolved.
   * @param   aServiceInfo
   *          the info about the service to be resolved.
   * @param   aErrorCode
   *          the error code.
   */

void onResolveFailed (in nsIDNSServiceInfo aServiceInfo, in long aErrorCode);

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

IID: nsIID = nsID(619602952, 25742, 16925, [172, 207, 198, 229, 173, 236, 207, 151])

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

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIDNSServiceResolveListener
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.