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]
pub fn coerce<T: nsICaptivePortalServiceCoerce>(&self) -> &T
[src]
Cast this nsICaptivePortalService
to one of its base interfaces.
impl nsICaptivePortalService
[src]
pub const UNKNOWN: i64
UNKNOWN: i64 = 0
pub const NOT_CAPTIVE: i64
NOT_CAPTIVE: i64 = 1
pub const UNLOCKED_PORTAL: i64
UNLOCKED_PORTAL: i64 = 2
pub const LOCKED_PORTAL: i64
LOCKED_PORTAL: i64 = 3
pub unsafe fn RecheckCaptivePortal(&self) -> nsresult
[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 ();
pub unsafe fn GetState(&self, aState: *mut int32_t) -> nsresult
[src]
/**
* Returns the state of the captive portal.
*/
readonly attribute long state;
pub unsafe fn GetLastChecked(&self, aLastChecked: *mut uint64_t) -> nsresult
[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>
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 nsICaptivePortalService
[src]
const IID: nsIID
IID: nsIID = nsID(3183347029, 64573, 20347, [146, 5, 195, 9, 206, 178, 214, 65])
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 nsICaptivePortalService
[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 nsICaptivePortalService
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.