Struct xpcom::interfaces::nsPIDNSService
[−]
[src]
#[repr(C)]pub struct nsPIDNSService { /* fields omitted */ }
interface nsPIDNSService : nsIDNSService
/**
* This is a private interface used by the internals of the networking library.
* It will never be frozen. Do not use it in external code.
*/
Methods
impl nsPIDNSService
[src]
pub fn coerce<T: nsPIDNSServiceCoerce>(&self) -> &T
[src]
Cast this nsPIDNSService
to one of its base interfaces.
impl nsPIDNSService
[src]
pub unsafe fn Init(&self) -> nsresult
[src]
/**
* called to initialize the DNS service.
*/
void init ();
pub unsafe fn Shutdown(&self) -> nsresult
[src]
/**
* called to shutdown the DNS service. any pending asynchronous
* requests will be canceled, and the local cache of DNS records
* will be cleared. NOTE: the operating system may still have
* its own cache of DNS records, which would be unaffected by
* this method.
*/
void shutdown ();
pub unsafe fn GetPrefetchEnabled(&self, aPrefetchEnabled: *mut bool) -> nsresult
[src]
/**
* Whether or not DNS prefetching (aka RESOLVE_SPECULATE) is enabled
*/
attribute boolean prefetchEnabled;
pub unsafe fn SetPrefetchEnabled(&self, aPrefetchEnabled: bool) -> nsresult
[src]
/**
* Whether or not DNS prefetching (aka RESOLVE_SPECULATE) is enabled
*/
attribute boolean prefetchEnabled;
Methods from Deref<Target = nsIDNSService>
pub fn coerce<T: nsIDNSServiceCoerce>(&self) -> &T
[src]
Cast this nsIDNSService
to one of its base interfaces.
pub const RESOLVE_BYPASS_CACHE: i64
pub const RESOLVE_CANONICAL_NAME: i64
pub const RESOLVE_PRIORITY_MEDIUM: i64
pub const RESOLVE_PRIORITY_LOW: i64
pub const RESOLVE_SPECULATE: i64
pub const RESOLVE_DISABLE_IPV6: i64
pub const RESOLVE_OFFLINE: i64
pub const RESOLVE_DISABLE_IPV4: i64
pub const RESOLVE_ALLOW_NAME_COLLISION: i64
pub unsafe fn GetMyHostName(&self, aMyHostName: &mut nsACString) -> nsresult
[src]
/**
* @return the hostname of the operating system.
*/
readonly attribute AUTF8String myHostName;
Trait Implementations
impl XpCom for nsPIDNSService
[src]
const IID: nsIID
IID: nsIID = nsID(619026685, 31514, 17260, [145, 84, 20, 216, 179, 141, 248, 165])
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 nsPIDNSService
[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 nsPIDNSService
[src]
type Target = nsIDNSService
The resulting type after dereferencing.
fn deref(&self) -> &nsIDNSService
[src]
Dereferences the value.