Struct xpcom::interfaces::nsISpeculativeConnect
[−]
[src]
#[repr(C)]pub struct nsISpeculativeConnect { /* fields omitted */ }
interface nsISpeculativeConnect : nsISupports
Methods
impl nsISpeculativeConnect
[src]
pub fn coerce<T: nsISpeculativeConnectCoerce>(&self) -> &T
[src]
Cast this nsISpeculativeConnect
to one of its base interfaces.
impl nsISpeculativeConnect
[src]
pub unsafe fn SpeculativeConnect(
&self,
aURI: *const nsIURI,
aCallbacks: *const nsIInterfaceRequestor
) -> nsresult
[src]
&self,
aURI: *const nsIURI,
aCallbacks: *const nsIInterfaceRequestor
) -> nsresult
/**
* Called as a hint to indicate a new transaction for the URI is likely coming
* soon. The implementer may use this information to start a TCP
* and/or SSL level handshake for that resource immediately so that it is
* ready and/or progressed when the transaction is actually submitted.
*
* No obligation is taken on by the implementer, nor is the submitter obligated
* to actually open the new channel.
*
* @param aURI the URI of the hinted transaction
* @param aPrincipal the principal that will be used for opening the
* channel of the hinted transaction.
* @param aCallbacks any security callbacks for use with SSL for interfaces
* such as nsIBadCertListener. May be null.
*
*/
void speculativeConnect (in nsIURI aURI, in nsIInterfaceRequestor aCallbacks);
pub unsafe fn SpeculativeConnect2(
&self,
aURI: *const nsIURI,
aPrincipal: *const nsIPrincipal,
aCallbacks: *const nsIInterfaceRequestor
) -> nsresult
[src]
&self,
aURI: *const nsIURI,
aPrincipal: *const nsIPrincipal,
aCallbacks: *const nsIInterfaceRequestor
) -> nsresult
void speculativeConnect2 (in nsIURI aURI, in nsIPrincipal aPrincipal, in nsIInterfaceRequestor aCallbacks);
pub unsafe fn SpeculativeAnonymousConnect(
&self,
aURI: *const nsIURI,
aCallbacks: *const nsIInterfaceRequestor
) -> nsresult
[src]
&self,
aURI: *const nsIURI,
aCallbacks: *const nsIInterfaceRequestor
) -> nsresult
void speculativeAnonymousConnect (in nsIURI aURI, in nsIInterfaceRequestor aCallbacks);
pub unsafe fn SpeculativeAnonymousConnect2(
&self,
aURI: *const nsIURI,
aPrincipal: *const nsIPrincipal,
aCallbacks: *const nsIInterfaceRequestor
) -> nsresult
[src]
&self,
aURI: *const nsIURI,
aPrincipal: *const nsIPrincipal,
aCallbacks: *const nsIInterfaceRequestor
) -> nsresult
void speculativeAnonymousConnect2 (in nsIURI aURI, in nsIPrincipal aPrincipal, in nsIInterfaceRequestor aCallbacks);
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 nsISpeculativeConnect
[src]
const IID: nsIID
IID: nsIID = nsID(3611957164, 23434, 18468, [163, 9, 177, 240, 74, 60, 74, 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 nsISpeculativeConnect
[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 nsISpeculativeConnect
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.