Struct xpcom::interfaces::nsINetworkPredictor
[−]
[src]
#[repr(C)]pub struct nsINetworkPredictor { /* fields omitted */ }
interface nsINetworkPredictor : nsISupports
/**
* nsINetworkPredictor - learn about pages users visit, and allow us to take
* predictive actions upon future visits.
* NOTE: nsINetworkPredictor should only
* be used on the main thread.
*/
Methods
impl nsINetworkPredictor
[src]
pub fn coerce<T: nsINetworkPredictorCoerce>(&self) -> &T
[src]
Cast this nsINetworkPredictor
to one of its base interfaces.
impl nsINetworkPredictor
[src]
pub const PREDICT_LINK: i64
PREDICT_LINK: i64 = 0
/**
* Prediction reasons
*
* PREDICT_LINK - we are being asked to take predictive action because
* the user is hovering over a link.
*
* PREDICT_LOAD - we are being asked to take predictive action because
* the user has initiated a pageload.
*
* PREDICT_STARTUP - we are being asked to take predictive action
* because the browser is starting up.
*/
pub const PREDICT_LOAD: i64
PREDICT_LOAD: i64 = 1
pub const PREDICT_STARTUP: i64
PREDICT_STARTUP: i64 = 2
pub const LEARN_LOAD_TOPLEVEL: i64
LEARN_LOAD_TOPLEVEL: i64 = 0
pub const LEARN_LOAD_SUBRESOURCE: i64
LEARN_LOAD_SUBRESOURCE: i64 = 1
pub const LEARN_LOAD_REDIRECT: i64
LEARN_LOAD_REDIRECT: i64 = 2
pub const LEARN_STARTUP: i64
LEARN_STARTUP: i64 = 3
pub unsafe fn Reset(&self) -> nsresult
[src]
/**
* Clear out all our learned knowledge
*
* This removes everything from our database so that any predictions begun
* after this completes will start from a blank slate.
*/
void reset ();
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 nsINetworkPredictor
[src]
const IID: nsIID
IID: nsIID = nsID(2898824828, 16185, 17095, [172, 49, 99, 119, 194, 195, 215, 62])
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 nsINetworkPredictor
[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 nsINetworkPredictor
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.