Struct xpcom::interfaces::nsIDNSServiceDiscoveryListener [] [src]

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

interface nsIDNSServiceDiscoveryListener : nsISupports

/**
 * The callback interface for service discovery
 */

Methods

impl nsIDNSServiceDiscoveryListener
[src]

[src]

Cast this nsIDNSServiceDiscoveryListener to one of its base interfaces.

impl nsIDNSServiceDiscoveryListener
[src]

[src]

/**
   * Callback when the discovery begins.
   * @param   aServiceType
   *          the service type of |startDiscovery|.
   */

void onDiscoveryStarted (in AUTF8String aServiceType);

[src]

/**
   * Callback when the discovery ends.
   * @param   aServiceType
   *          the service type of |startDiscovery|.
   */

void onDiscoveryStopped (in AUTF8String aServiceType);

[src]

/**
   * Callback when the a service is found.
   * @param   aServiceInfo
   *          the info about the found service, where |serviceName|, |aServiceType|, and |domainName| are set.
   */

void onServiceFound (in nsIDNSServiceInfo aServiceInfo);

[src]

/**
   * Callback when the a service is lost.
   * @param   aServiceInfo
   *          the info about the lost service, where |serviceName|, |aServiceType|, and |domainName| are set.
   */

void onServiceLost (in nsIDNSServiceInfo aServiceInfo);

[src]

/**
   * Callback when the discovery cannot start.
   * @param   aServiceType
   *          the service type of |startDiscovery|.
   * @param   aErrorCode
   *          the error code.
   */

void onStartDiscoveryFailed (in AUTF8String aServiceType, in long aErrorCode);

[src]

/**
   * Callback when the discovery cannot stop.
   * @param   aServiceType
   *          the service type of |startDiscovery|.
   * @param   aErrorCode
   *          the error code.
   */

void onStopDiscoveryFailed (in AUTF8String aServiceType, 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 nsIDNSServiceDiscoveryListener
[src]

IID: nsIID = nsID(807778290, 38843, 17243, [180, 61, 38, 115, 27, 63, 95, 196])

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

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIDNSServiceDiscoveryListener
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.