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]
pub fn coerce<T: nsIDNSServiceDiscoveryListenerCoerce>(&self) -> &T
[src]
Cast this nsIDNSServiceDiscoveryListener
to one of its base interfaces.
impl nsIDNSServiceDiscoveryListener
[src]
pub unsafe fn OnDiscoveryStarted(&self, aServiceType: &nsACString) -> nsresult
[src]
/**
* Callback when the discovery begins.
* @param aServiceType
* the service type of |startDiscovery|.
*/
void onDiscoveryStarted (in AUTF8String aServiceType);
pub unsafe fn OnDiscoveryStopped(&self, aServiceType: &nsACString) -> nsresult
[src]
/**
* Callback when the discovery ends.
* @param aServiceType
* the service type of |startDiscovery|.
*/
void onDiscoveryStopped (in AUTF8String aServiceType);
pub unsafe fn OnServiceFound(
&self,
aServiceInfo: *const nsIDNSServiceInfo
) -> nsresult
[src]
&self,
aServiceInfo: *const nsIDNSServiceInfo
) -> nsresult
/**
* 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);
pub unsafe fn OnServiceLost(
&self,
aServiceInfo: *const nsIDNSServiceInfo
) -> nsresult
[src]
&self,
aServiceInfo: *const nsIDNSServiceInfo
) -> nsresult
/**
* 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);
pub unsafe fn OnStartDiscoveryFailed(
&self,
aServiceType: &nsACString,
aErrorCode: int32_t
) -> nsresult
[src]
&self,
aServiceType: &nsACString,
aErrorCode: int32_t
) -> nsresult
/**
* 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);
pub unsafe fn OnStopDiscoveryFailed(
&self,
aServiceType: &nsACString,
aErrorCode: int32_t
) -> nsresult
[src]
&self,
aServiceType: &nsACString,
aErrorCode: int32_t
) -> nsresult
/**
* 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>
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 nsIDNSServiceDiscoveryListener
[src]
const IID: nsIID
IID: nsIID = nsID(807778290, 38843, 17243, [180, 61, 38, 115, 27, 63, 95, 196])
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 nsIDNSServiceDiscoveryListener
[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 nsIDNSServiceDiscoveryListener
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.