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]

[src]

Cast this nsINetworkPredictor to one of its base interfaces.

impl nsINetworkPredictor
[src]

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.
   */

PREDICT_LOAD: i64 = 1

PREDICT_STARTUP: i64 = 2

LEARN_LOAD_TOPLEVEL: i64 = 0

LEARN_LOAD_SUBRESOURCE: i64 = 1

LEARN_LOAD_REDIRECT: i64 = 2

LEARN_STARTUP: i64 = 3

[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>

[src]

Cast this nsISupports to one of its base interfaces.

[src]

void QueryInterface (in nsIIDRef uuid, [iid_is (uuid), retval] out nsQIResult result);

[src]

[noscript,notxpcom] nsrefcnt AddRef ();

[src]

[noscript,notxpcom] nsrefcnt Release ();

Trait Implementations

impl XpCom for nsINetworkPredictor
[src]

IID: nsIID = nsID(2898824828, 16185, 17095, [172, 49, 99, 119, 194, 195, 215, 62])

[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]

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsINetworkPredictor
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.