Struct xpcom::interfaces::nsIDNSRegistrationListener
[−]
[src]
#[repr(C)]pub struct nsIDNSRegistrationListener { /* fields omitted */ }
interface nsIDNSRegistrationListener : nsISupports
/**
* The callback interface for service registration
*/
Methods
impl nsIDNSRegistrationListener
[src]
pub fn coerce<T: nsIDNSRegistrationListenerCoerce>(&self) -> &T
[src]
Cast this nsIDNSRegistrationListener
to one of its base interfaces.
impl nsIDNSRegistrationListener
[src]
pub const ERROR_SERVICE_NOT_RUNNING: i64
ERROR_SERVICE_NOT_RUNNING: i64 = -65563
pub unsafe fn OnServiceRegistered(
&self,
aServiceInfo: *const nsIDNSServiceInfo
) -> nsresult
[src]
&self,
aServiceInfo: *const nsIDNSServiceInfo
) -> nsresult
/**
* Callback when the service is registered successfully.
* @param aServiceInfo
* the info about the registered service,
* where |serviceName|, |aServiceType|, and |domainName| are set.
*/
void onServiceRegistered (in nsIDNSServiceInfo aServiceInfo);
pub unsafe fn OnServiceUnregistered(
&self,
aServiceInfo: *const nsIDNSServiceInfo
) -> nsresult
[src]
&self,
aServiceInfo: *const nsIDNSServiceInfo
) -> nsresult
/**
* Callback when the service is unregistered successfully.
* @param aServiceInfo
* the info about the unregistered service.
*/
void onServiceUnregistered (in nsIDNSServiceInfo aServiceInfo);
pub unsafe fn OnRegistrationFailed(
&self,
aServiceInfo: *const nsIDNSServiceInfo,
aErrorCode: int32_t
) -> nsresult
[src]
&self,
aServiceInfo: *const nsIDNSServiceInfo,
aErrorCode: int32_t
) -> nsresult
/**
* Callback when the service cannot be registered.
* @param aServiceInfo
* the info about the service to be registered.
* @param aErrorCode
* the error code.
*/
void onRegistrationFailed (in nsIDNSServiceInfo aServiceInfo, in long aErrorCode);
pub unsafe fn OnUnregistrationFailed(
&self,
aServiceInfo: *const nsIDNSServiceInfo,
aErrorCode: int32_t
) -> nsresult
[src]
&self,
aServiceInfo: *const nsIDNSServiceInfo,
aErrorCode: int32_t
) -> nsresult
/**
* Callback when the service cannot be unregistered.
* @param aServiceInfo
* the info about the registered service.
* @param aErrorCode
* the error code.
*/
void onUnregistrationFailed (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 nsIDNSRegistrationListener
[src]
const IID: nsIID
IID: nsIID = nsID(3781551294, 44020, 18787, [166, 109, 237, 60, 161, 22, 229, 228])
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 nsIDNSRegistrationListener
[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 nsIDNSRegistrationListener
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.