Struct xpcom::interfaces::nsICaptivePortalDetector [] [src]

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

interface nsICaptivePortalDetector : nsISupports

Methods

impl nsICaptivePortalDetector
[src]

[src]

Cast this nsICaptivePortalDetector to one of its base interfaces.

impl nsICaptivePortalDetector
[src]

[src]

/**
   * Perform captive portal detection on specific network interface.
   * @param ifname The name of network interface, exception will be thrwon
   *               if the same interface has unfinished request.
   * @param callback Callbacks when detection procedure starts and finishes.
   */

void checkCaptivePortal (in wstring ifname, in nsICaptivePortalCallback callback);

[src]

/**
   * Abort captive portal detection for specific network interface
   * due to system failure, callback will not be invoked.
   * @param ifname The name of network interface.
   */

void abort (in wstring ifname);

[src]

/**
   * Cancel captive portal login procedure by user, callback will be invoked.
   * @param eventId Login event id provided in |captive-portal-login| event.
   */

void cancelLogin (in wstring eventId);

[src]

/**
   * Notify prepare phase is finished, routing and dns must be ready for sending
   * out XMLHttpRequest. this is callback for CaptivePortalDetector API user.
   * @param ifname The name of network interface, must be unique.
   */

void finishPreparation (in wstring ifname);

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

IID: nsIID = nsID(797080666, 62801, 18303, [175, 9, 113, 173, 191, 189, 133, 74])

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

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsICaptivePortalDetector
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.