Struct xpcom::interfaces::nsIDNSServiceDiscovery
[−]
[src]
#[repr(C)]pub struct nsIDNSServiceDiscovery { /* fields omitted */ }
interface nsIDNSServiceDiscovery : nsISupports
/**
* The interface for DNS service discovery/registration/resolve
*/
Methods
impl nsIDNSServiceDiscovery
[src]
pub fn coerce<T: nsIDNSServiceDiscoveryCoerce>(&self) -> &T
[src]
Cast this nsIDNSServiceDiscovery
to one of its base interfaces.
impl nsIDNSServiceDiscovery
[src]
pub unsafe fn StartDiscovery(
&self,
aServiceType: &nsACString,
aListener: *const nsIDNSServiceDiscoveryListener,
_retval: *mut *const nsICancelable
) -> nsresult
[src]
&self,
aServiceType: &nsACString,
aListener: *const nsIDNSServiceDiscoveryListener,
_retval: *mut *const nsICancelable
) -> nsresult
/**
* Browse for instances of a service.
* @param aServiceType
* the service type to be discovered, E.g. "_http._tcp".
* @param aListener
* callback interface for discovery notifications.
* @return An object that can be used to cancel the service discovery.
*/
nsICancelable startDiscovery (in AUTF8String aServiceType, in nsIDNSServiceDiscoveryListener aListener);
pub unsafe fn RegisterService(
&self,
aServiceInfo: *const nsIDNSServiceInfo,
aListener: *const nsIDNSRegistrationListener,
_retval: *mut *const nsICancelable
) -> nsresult
[src]
&self,
aServiceInfo: *const nsIDNSServiceInfo,
aListener: *const nsIDNSRegistrationListener,
_retval: *mut *const nsICancelable
) -> nsresult
/**
* Register a service that is discovered via |startDiscovery| and |resolveService| calls.
* @param aServiceInfo
* the service information to be registered.
* |port| and |aServiceType| are required attributes.
* @param aListener
* callback interface for registration notifications.
* @return An object that can be used to cancel the service registration.
*/
nsICancelable registerService (in nsIDNSServiceInfo aServiceInfo, in nsIDNSRegistrationListener aListener);
pub unsafe fn ResolveService(
&self,
aServiceInfo: *const nsIDNSServiceInfo,
aListener: *const nsIDNSServiceResolveListener
) -> nsresult
[src]
&self,
aServiceInfo: *const nsIDNSServiceInfo,
aListener: *const nsIDNSServiceResolveListener
) -> nsresult
/**
* Resolve a service name discovered via |startDiscovery| to a target host name, port number.
* @param aServiceInfo
* the service information to be registered.
* |serviceName|, |aServiceType|, and |domainName| are required attributes as reported to the |onServiceFound| callback.
* @param aListener
* callback interface for registration notifications.
*/
void resolveService (in nsIDNSServiceInfo aServiceInfo, in nsIDNSServiceResolveListener aListener);
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 nsIDNSServiceDiscovery
[src]
const IID: nsIID
IID: nsIID = nsID(1686604187, 48817, 17754, [186, 101, 228, 253, 70, 80, 102, 215])
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 nsIDNSServiceDiscovery
[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 nsIDNSServiceDiscovery
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.