Struct xpcom::interfaces::nsIDNSServiceInfo
[−]
[src]
#[repr(C)]pub struct nsIDNSServiceInfo { /* fields omitted */ }
interface nsIDNSServiceInfo : nsISupports
/**
* Service information
*/
Methods
impl nsIDNSServiceInfo
[src]
pub fn coerce<T: nsIDNSServiceInfoCoerce>(&self) -> &T
[src]
Cast this nsIDNSServiceInfo
to one of its base interfaces.
impl nsIDNSServiceInfo
[src]
pub unsafe fn GetHost(&self, aHost: &mut nsACString) -> nsresult
[src]
/**
* The host name of the service. (E.g. "Android.local.")
* @throws NS_ERROR_NOT_INITIALIZED when getting unset value.
*/
attribute AUTF8String host;
pub unsafe fn SetHost(&self, aHost: &nsACString) -> nsresult
[src]
/**
* The host name of the service. (E.g. "Android.local.")
* @throws NS_ERROR_NOT_INITIALIZED when getting unset value.
*/
attribute AUTF8String host;
pub unsafe fn GetAddress(&self, aAddress: &mut nsACString) -> nsresult
[src]
/**
* The IP address of the service.
* @throws NS_ERROR_NOT_INITIALIZED when getting unset value.
*/
attribute AUTF8String address;
pub unsafe fn SetAddress(&self, aAddress: &nsACString) -> nsresult
[src]
/**
* The IP address of the service.
* @throws NS_ERROR_NOT_INITIALIZED when getting unset value.
*/
attribute AUTF8String address;
pub unsafe fn GetPort(&self, aPort: *mut uint16_t) -> nsresult
[src]
/**
* The port number of the service. (E.g. 80)
* @throws NS_ERROR_NOT_INITIALIZED when getting unset value.
*/
attribute unsigned short port;
pub unsafe fn SetPort(&self, aPort: uint16_t) -> nsresult
[src]
/**
* The port number of the service. (E.g. 80)
* @throws NS_ERROR_NOT_INITIALIZED when getting unset value.
*/
attribute unsigned short port;
pub unsafe fn GetServiceName(&self, aServiceName: &mut nsACString) -> nsresult
[src]
/**
* The service name of the service for display. (E.g. "My TV")
* @throws NS_ERROR_NOT_INITIALIZED when getting unset value.
*/
attribute AUTF8String serviceName;
pub unsafe fn SetServiceName(&self, aServiceName: &nsACString) -> nsresult
[src]
/**
* The service name of the service for display. (E.g. "My TV")
* @throws NS_ERROR_NOT_INITIALIZED when getting unset value.
*/
attribute AUTF8String serviceName;
pub unsafe fn GetServiceType(&self, aServiceType: &mut nsACString) -> nsresult
[src]
/**
* The type of the service. (E.g. "_http._tcp")
* @throws NS_ERROR_NOT_INITIALIZED when getting unset value.
*/
attribute AUTF8String serviceType;
pub unsafe fn SetServiceType(&self, aServiceType: &nsACString) -> nsresult
[src]
/**
* The type of the service. (E.g. "_http._tcp")
* @throws NS_ERROR_NOT_INITIALIZED when getting unset value.
*/
attribute AUTF8String serviceType;
pub unsafe fn GetDomainName(&self, aDomainName: &mut nsACString) -> nsresult
[src]
/**
* The domain name of the service. (E.g. "local.")
* @throws NS_ERROR_NOT_INITIALIZED when getting unset value.
*/
attribute AUTF8String domainName;
pub unsafe fn SetDomainName(&self, aDomainName: &nsACString) -> nsresult
[src]
/**
* The domain name of the service. (E.g. "local.")
* @throws NS_ERROR_NOT_INITIALIZED when getting unset value.
*/
attribute AUTF8String domainName;
pub unsafe fn GetAttributes(
&self,
aAttributes: *mut *const nsIPropertyBag2
) -> nsresult
[src]
&self,
aAttributes: *mut *const nsIPropertyBag2
) -> nsresult
/**
* The attributes of the service.
*/
attribute nsIPropertyBag2 attributes;
pub unsafe fn SetAttributes(
&self,
aAttributes: *const nsIPropertyBag2
) -> nsresult
[src]
&self,
aAttributes: *const nsIPropertyBag2
) -> nsresult
/**
* The attributes of the service.
*/
attribute nsIPropertyBag2 attributes;
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 nsIDNSServiceInfo
[src]
const IID: nsIID
IID: nsIID = nsID(1729024249, 12197, 17732, [191, 30, 234, 88, 172, 23, 147, 116])
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 nsIDNSServiceInfo
[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 nsIDNSServiceInfo
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.