Struct xpcom::interfaces::nsINetworkLinkService
[−]
[src]
#[repr(C)]pub struct nsINetworkLinkService { /* fields omitted */ }
interface nsINetworkLinkService : nsISupports
/**
* Network link status monitoring service.
*/
Methods
impl nsINetworkLinkService
[src]
pub fn coerce<T: nsINetworkLinkServiceCoerce>(&self) -> &T
[src]
Cast this nsINetworkLinkService
to one of its base interfaces.
impl nsINetworkLinkService
[src]
pub const LINK_TYPE_UNKNOWN: i64
LINK_TYPE_UNKNOWN: i64 = 0
pub const LINK_TYPE_ETHERNET: i64
LINK_TYPE_ETHERNET: i64 = 1
pub const LINK_TYPE_USB: i64
LINK_TYPE_USB: i64 = 2
pub const LINK_TYPE_WIFI: i64
LINK_TYPE_WIFI: i64 = 3
pub const LINK_TYPE_WIMAX: i64
LINK_TYPE_WIMAX: i64 = 4
pub const LINK_TYPE_2G: i64
LINK_TYPE_2G: i64 = 5
pub const LINK_TYPE_3G: i64
LINK_TYPE_3G: i64 = 6
pub const LINK_TYPE_4G: i64
LINK_TYPE_4G: i64 = 7
pub unsafe fn GetIsLinkUp(&self, aIsLinkUp: *mut bool) -> nsresult
[src]
/**
* This is set to true when the system is believed to have a usable
* network connection.
*
* The link is only up when network connections can be established. For
* example, the link is down during DHCP configuration (unless there
* is another usable interface already configured).
*
* If the link status is not currently known, we generally assume that
* it is up.
*/
readonly attribute boolean isLinkUp;
pub unsafe fn GetLinkStatusKnown(&self, aLinkStatusKnown: *mut bool) -> nsresult
[src]
/**
* This is set to true when we believe that isLinkUp is accurate.
*/
readonly attribute boolean linkStatusKnown;
pub unsafe fn GetLinkType(&self, aLinkType: *mut uint32_t) -> nsresult
[src]
/**
* The type of network connection.
*/
readonly attribute unsigned long linkType;
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 nsINetworkLinkService
[src]
const IID: nsIID
IID: nsIID = nsID(272519827, 30643, 19312, [175, 89, 110, 158, 74, 31, 153, 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 nsINetworkLinkService
[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 nsINetworkLinkService
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.