Struct xpcom::interfaces::nsISocketProvider
[−]
[src]
#[repr(C)]pub struct nsISocketProvider { /* fields omitted */ }
interface nsISocketProvider : nsISupports
/**
* nsISocketProvider
*/
Methods
impl nsISocketProvider
[src]
pub fn coerce<T: nsISocketProviderCoerce>(&self) -> &T
[src]
Cast this nsISocketProvider
to one of its base interfaces.
impl nsISocketProvider
[src]
pub const PROXY_RESOLVES_HOST: i64
PROXY_RESOLVES_HOST: i64 = 1
/**
* PROXY_RESOLVES_HOST
*
* This flag is set if the proxy is to perform hostname resolution instead
* of the client. When set, the hostname parameter passed when in this
* interface will be used instead of the address structure passed for a
* later connect et al. request.
*/
pub const ANONYMOUS_CONNECT: i64
ANONYMOUS_CONNECT: i64 = 2
/**
* When setting this flag, the socket will not apply any
* credentials when establishing a connection. For example,
* an SSL connection would not send any client-certificates
* if this flag is set.
*/
pub const NO_PERMANENT_STORAGE: i64
NO_PERMANENT_STORAGE: i64 = 4
/**
* If set, indicates that the connection was initiated from a source
* defined as being private in the sense of Private Browsing. Generally,
* there should be no state shared between connections that are private
* and those that are not; it is OK for multiple private connections
* to share state with each other, and it is OK for multiple non-private
* connections to share state with each other.
*/
pub const MITM_OK: i64
MITM_OK: i64 = 8
/**
* This flag is an explicit opt-in that allows a normally secure socket
* provider to use, at its discretion, an insecure algorithm. e.g.
* a TLS socket without authentication.
*/
pub const BE_CONSERVATIVE: i64
BE_CONSERVATIVE: i64 = 16
/**
* If set, do not use newer protocol features that might have interop problems
* on the Internet. Intended only for use with critical infra like the updater.
* default is false.
*/
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 nsISocketProvider
[src]
const IID: nsIID
IID: nsIID = nsID(1351439465, 40478, 18952, [181, 176, 124, 254, 187, 161, 229, 26])
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 nsISocketProvider
[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 nsISocketProvider
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.