Struct xpcom::interfaces::nsIDNSService
[−]
[src]
#[repr(C)]pub struct nsIDNSService { /* fields omitted */ }
interface nsIDNSService : nsISupports
/**
* nsIDNSService
*/
Methods
impl nsIDNSService
[src]
pub fn coerce<T: nsIDNSServiceCoerce>(&self) -> &T
[src]
Cast this nsIDNSService
to one of its base interfaces.
impl nsIDNSService
[src]
pub const RESOLVE_BYPASS_CACHE: i64
RESOLVE_BYPASS_CACHE: i64 = 1
/*************************************************************************
* Listed below are the various flags that may be OR'd together to form
* the aFlags parameter passed to asyncResolve() and resolve().
*/
/**
* if set, this flag suppresses the internal DNS lookup cache.
*/
pub const RESOLVE_CANONICAL_NAME: i64
RESOLVE_CANONICAL_NAME: i64 = 2
/**
* if set, the canonical name of the specified host will be queried.
*/
pub const RESOLVE_PRIORITY_MEDIUM: i64
RESOLVE_PRIORITY_MEDIUM: i64 = 4
/**
* if set, the query is given lower priority. Medium takes precedence
* if both are used.
*/
pub const RESOLVE_PRIORITY_LOW: i64
RESOLVE_PRIORITY_LOW: i64 = 8
pub const RESOLVE_SPECULATE: i64
RESOLVE_SPECULATE: i64 = 16
/**
* if set, indicates request is speculative. Speculative requests
* return errors if prefetching is disabled by configuration.
*/
pub const RESOLVE_DISABLE_IPV6: i64
RESOLVE_DISABLE_IPV6: i64 = 32
/**
* If set, only IPv4 addresses will be returned from resolve/asyncResolve.
*/
pub const RESOLVE_OFFLINE: i64
RESOLVE_OFFLINE: i64 = 64
/**
* If set, only literals and cached entries will be returned from resolve/
* asyncResolve.
*/
pub const RESOLVE_DISABLE_IPV4: i64
RESOLVE_DISABLE_IPV4: i64 = 128
/**
* If set, only IPv6 addresses will be returned from resolve/asyncResolve.
*/
pub const RESOLVE_ALLOW_NAME_COLLISION: i64
RESOLVE_ALLOW_NAME_COLLISION: i64 = 256
/**
* If set, allow name collision results (127.0.53.53) which are normally filtered.
*/
pub unsafe fn GetMyHostName(&self, aMyHostName: &mut nsACString) -> nsresult
[src]
/**
* @return the hostname of the operating system.
*/
readonly attribute AUTF8String myHostName;
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 nsIDNSService
[src]
const IID: nsIID
IID: nsIID = nsID(3730195142, 25084, 20431, [154, 71, 3, 34, 107, 13, 78, 33])
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 nsIDNSService
[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 nsIDNSService
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.