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]
pub fn coerce<T: nsIDNSServiceResolveListenerCoerce>(&self) -> &T
[src]
Cast this nsIDNSServiceResolveListener
to one of its base interfaces.
impl nsIDNSServiceResolveListener
[src]
pub unsafe fn OnServiceResolved(
&self,
aServiceInfo: *const nsIDNSServiceInfo
) -> nsresult
[src]
&self,
aServiceInfo: *const nsIDNSServiceInfo
) -> nsresult
/**
* 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);
pub unsafe fn OnResolveFailed(
&self,
aServiceInfo: *const nsIDNSServiceInfo,
aErrorCode: int32_t
) -> nsresult
[src]
&self,
aServiceInfo: *const nsIDNSServiceInfo,
aErrorCode: int32_t
) -> nsresult
/**
* 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>
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 nsIDNSServiceResolveListener
[src]
const IID: nsIID
IID: nsIID = nsID(619602952, 25742, 16925, [172, 207, 198, 229, 173, 236, 207, 151])
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 nsIDNSServiceResolveListener
[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 nsIDNSServiceResolveListener
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.