Struct xpcom::interfaces::nsICaptivePortalDetector
[−]
[src]
#[repr(C)]pub struct nsICaptivePortalDetector { /* fields omitted */ }
interface nsICaptivePortalDetector : nsISupports
Methods
impl nsICaptivePortalDetector
[src]
pub fn coerce<T: nsICaptivePortalDetectorCoerce>(&self) -> &T
[src]
Cast this nsICaptivePortalDetector
to one of its base interfaces.
impl nsICaptivePortalDetector
[src]
pub unsafe fn CheckCaptivePortal(
&self,
ifname: *const int16_t,
callback: *const nsICaptivePortalCallback
) -> nsresult
[src]
&self,
ifname: *const int16_t,
callback: *const nsICaptivePortalCallback
) -> nsresult
/**
* 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);
pub unsafe fn Abort(&self, ifname: *const int16_t) -> nsresult
[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);
pub unsafe fn CancelLogin(&self, eventId: *const int16_t) -> nsresult
[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);
pub unsafe fn FinishPreparation(&self, ifname: *const int16_t) -> nsresult
[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>
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 nsICaptivePortalDetector
[src]
const IID: nsIID
IID: nsIID = nsID(797080666, 62801, 18303, [175, 9, 113, 173, 191, 189, 133, 74])
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 nsICaptivePortalDetector
[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 nsICaptivePortalDetector
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.