Struct xpcom::interfaces::nsIDNSService [] [src]

#[repr(C)]
pub struct nsIDNSService { /* fields omitted */ }

interface nsIDNSService : nsISupports

/**
 * nsIDNSService
 */

Methods

impl nsIDNSService
[src]

[src]

Cast this nsIDNSService to one of its base interfaces.

impl nsIDNSService
[src]

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.
     */

RESOLVE_CANONICAL_NAME: i64 = 2
/**
     * if set, the canonical name of the specified host will be queried.
     */

RESOLVE_PRIORITY_MEDIUM: i64 = 4
/**
     * if set, the query is given lower priority. Medium takes precedence
     * if both are used.
     */

RESOLVE_PRIORITY_LOW: i64 = 8

RESOLVE_SPECULATE: i64 = 16
/**
     * if set, indicates request is speculative. Speculative requests
     * return errors if prefetching is disabled by configuration.
     */

RESOLVE_DISABLE_IPV6: i64 = 32
/**
     * If set, only IPv4 addresses will be returned from resolve/asyncResolve.
     */

RESOLVE_OFFLINE: i64 = 64
/**
     * If set, only literals and cached entries will be returned from resolve/
     * asyncResolve.
     */

RESOLVE_DISABLE_IPV4: i64 = 128
/**
     * If set, only IPv6 addresses will be returned from resolve/asyncResolve.
     */

RESOLVE_ALLOW_NAME_COLLISION: i64 = 256
/**
     * If set, allow name collision results (127.0.53.53) which are normally filtered.
     */

[src]

/**
     * @return the hostname of the operating system.
     */

readonly attribute AUTF8String myHostName;

Methods from Deref<Target = nsISupports>

[src]

Cast this nsISupports to one of its base interfaces.

[src]

void QueryInterface (in nsIIDRef uuid, [iid_is (uuid), retval] out nsQIResult result);

[src]

[noscript,notxpcom] nsrefcnt AddRef ();

[src]

[noscript,notxpcom] nsrefcnt Release ();

Trait Implementations

impl XpCom for nsIDNSService
[src]

IID: nsIID = nsID(3730195142, 25084, 20431, [154, 71, 3, 34, 107, 13, 78, 33])

[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]

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIDNSService
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.