Struct xpcom::interfaces::nsIProxyInfo
[−]
[src]
#[repr(C)]pub struct nsIProxyInfo { /* fields omitted */ }
interface nsIProxyInfo : nsISupports
/**
* This interface identifies a proxy server.
*/
Methods
impl nsIProxyInfo
[src]
pub fn coerce<T: nsIProxyInfoCoerce>(&self) -> &T
[src]
Cast this nsIProxyInfo
to one of its base interfaces.
impl nsIProxyInfo
[src]
pub const TRANSPARENT_PROXY_RESOLVES_HOST: i64
TRANSPARENT_PROXY_RESOLVES_HOST: i64 = 1
/****************************************************************************
* The following "Proxy Flags" may be bit-wise combined to construct the
* flags attribute defined on this interface. All unspecified bits are
* reserved for future use.
*/
/**
* This flag is set if the proxy is to perform name resolution itself. If
* this is the case, the hostname is used in some fashion, and we shouldn't
* do any form of DNS lookup ourselves.
*/
pub unsafe fn GetHost(&self, aHost: &mut nsACString) -> nsresult
[src]
/**
* This attribute specifies the hostname of the proxy server.
*/
readonly attribute AUTF8String host;
pub unsafe fn GetPort(&self, aPort: *mut int32_t) -> nsresult
[src]
/**
* This attribute specifies the port number of the proxy server.
*/
readonly attribute long port;
pub unsafe fn GetType(&self, aType: &mut nsACString) -> nsresult
[src]
/**
* This attribute specifies the type of the proxy server as an ASCII string.
*
* Some special values for this attribute include (but are not limited to)
* the following:
* "http" HTTP proxy (or SSL CONNECT for HTTPS)
* "https" HTTP proxying over TLS connection to proxy
* "socks" SOCKS v5 proxy
* "socks4" SOCKS v4 proxy
* "direct" no proxy
* "unknown" unknown proxy (see nsIProtocolProxyService::resolve)
*
* A future version of this interface may define additional types.
*/
readonly attribute ACString type;
pub unsafe fn GetFlags(&self, aFlags: *mut uint32_t) -> nsresult
[src]
/**
* This attribute specifies flags that modify the proxy type. The value of
* this attribute is the bit-wise combination of the Proxy Flags defined
* below. Any undefined bits are reserved for future use.
*/
readonly attribute unsigned long flags;
pub unsafe fn GetResolveFlags(&self, aResolveFlags: *mut uint32_t) -> nsresult
[src]
/**
* This attribute specifies flags that were used by nsIProxyProtocolService when
* creating this ProxyInfo element.
*/
readonly attribute unsigned long resolveFlags;
pub unsafe fn GetUsername(&self, aUsername: &mut nsACString) -> nsresult
[src]
/**
* Specifies a proxy username.
*/
readonly attribute ACString username;
pub unsafe fn GetPassword(&self, aPassword: &mut nsACString) -> nsresult
[src]
/**
* Specifies a proxy password.
*/
readonly attribute ACString password;
pub unsafe fn GetFailoverTimeout(
&self,
aFailoverTimeout: *mut uint32_t
) -> nsresult
[src]
&self,
aFailoverTimeout: *mut uint32_t
) -> nsresult
/**
* This attribute specifies the failover timeout in seconds for this proxy.
* If a nsIProxyInfo is reported as failed via nsIProtocolProxyService::
* getFailoverForProxy, then the failed proxy will not be used again for this
* many seconds.
*/
readonly attribute unsigned long failoverTimeout;
pub unsafe fn GetFailoverProxy(
&self,
aFailoverProxy: *mut *const nsIProxyInfo
) -> nsresult
[src]
&self,
aFailoverProxy: *mut *const nsIProxyInfo
) -> nsresult
/**
* This attribute specifies the proxy to failover to when this proxy fails.
*/
attribute nsIProxyInfo failoverProxy;
pub unsafe fn SetFailoverProxy(
&self,
aFailoverProxy: *const nsIProxyInfo
) -> nsresult
[src]
&self,
aFailoverProxy: *const nsIProxyInfo
) -> nsresult
/**
* This attribute specifies the proxy to failover to when this proxy fails.
*/
attribute nsIProxyInfo failoverProxy;
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 nsIProxyInfo
[src]
const IID: nsIID
IID: nsIID = nsID(1677717874, 9572, 16696, [150, 198, 58, 231, 210, 69, 251, 237])
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 nsIProxyInfo
[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 nsIProxyInfo
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.