Struct xpcom::interfaces::nsINetworkPredictorVerifier
[−]
[src]
#[repr(C)]pub struct nsINetworkPredictorVerifier { /* fields omitted */ }
interface nsINetworkPredictorVerifier : nsISupports
Methods
impl nsINetworkPredictorVerifier
[src]
pub fn coerce<T: nsINetworkPredictorVerifierCoerce>(&self) -> &T
[src]
Cast this nsINetworkPredictorVerifier
to one of its base interfaces.
impl nsINetworkPredictorVerifier
[src]
pub unsafe fn OnPredictPrefetch(
&self,
uri: *const nsIURI,
status: uint32_t
) -> nsresult
[src]
&self,
uri: *const nsIURI,
status: uint32_t
) -> nsresult
/**
* Callback for when we do a predictive prefetch
*
* @param uri - The URI that was prefetched
* @param status - The request status code returned by the
* prefetch attempt e.g. 200 (OK):w
*/
void onPredictPrefetch (in nsIURI uri, in uint32_t status);
pub unsafe fn OnPredictPreconnect(&self, uri: *const nsIURI) -> nsresult
[src]
/**
* Callback for when we do a predictive preconnect
*
* @param uri - The URI that was preconnected to
*/
void onPredictPreconnect (in nsIURI uri);
pub unsafe fn OnPredictDNS(&self, uri: *const nsIURI) -> nsresult
[src]
/**
* Callback for when we do a predictive DNS lookup
*
* @param uri - The URI that was looked up
*/
void onPredictDNS (in nsIURI uri);
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 nsINetworkPredictorVerifier
[src]
const IID: nsIID
IID: nsIID = nsID(776190770, 55999, 17556, [159, 144, 43, 49, 149, 177, 199, 61])
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 nsINetworkPredictorVerifier
[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 nsINetworkPredictorVerifier
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.