Struct xpcom::interfaces::nsIDNSListener
[−]
[src]
#[repr(C)]pub struct nsIDNSListener { /* fields omitted */ }
interface nsIDNSListener : nsISupports
/**
* nsIDNSListener
*/
Methods
impl nsIDNSListener
[src]
pub fn coerce<T: nsIDNSListenerCoerce>(&self) -> &T
[src]
Cast this nsIDNSListener
to one of its base interfaces.
impl nsIDNSListener
[src]
pub unsafe fn OnLookupComplete(
&self,
aRequest: *const nsICancelable,
aRecord: *const nsIDNSRecord,
aStatus: nsresult
) -> nsresult
[src]
&self,
aRequest: *const nsICancelable,
aRecord: *const nsIDNSRecord,
aStatus: nsresult
) -> nsresult
/**
* called when an asynchronous host lookup completes.
*
* @param aRequest
* the value returned from asyncResolve.
* @param aRecord
* the DNS record corresponding to the hostname that was resolved.
* this parameter is null if there was an error.
* @param aStatus
* if the lookup failed, this parameter gives the reason.
*/
void onLookupComplete (in nsICancelable aRequest, in nsIDNSRecord aRecord, in nsresult aStatus);
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 nsIDNSListener
[src]
const IID: nsIID
IID: nsIID = nsID(668244990, 10252, 18912, [187, 170, 246, 32, 12, 35, 44, 61])
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 nsIDNSListener
[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 nsIDNSListener
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.