Struct xpcom::interfaces::nsICaptivePortalService [] [src]

#[repr(C)]
pub struct nsICaptivePortalService { /* fields omitted */ }

interface nsICaptivePortalService : nsISupports

/**
 * Service used for captive portal detection.
 * The service is only active in the main process. It is also available in the
 * content process, but only to mirror the captive portal state from the main
 * process.
 */

Methods

impl nsICaptivePortalService
[src]

[src]

Cast this nsICaptivePortalService to one of its base interfaces.

impl nsICaptivePortalService
[src]

UNKNOWN: i64 = 0

NOT_CAPTIVE: i64 = 1

UNLOCKED_PORTAL: i64 = 2

LOCKED_PORTAL: i64 = 3

[src]

/**
   * Called from XPCOM to trigger a captive portal recheck.
   * A network request will only be performed if no other checks are currently
   * ongoing.
   * Will not do anything if called in the content process.
   */

void recheckCaptivePortal ();

[src]

/**
   * Returns the state of the captive portal.
   */

readonly attribute long state;

[src]

/**
   * Returns the time difference between NOW and the last time a request was
   * completed in milliseconds.
   */

readonly attribute unsigned long long lastChecked;

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

IID: nsIID = nsID(3183347029, 64573, 20347, [146, 5, 195, 9, 206, 178, 214, 65])

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

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsICaptivePortalService
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.