Struct xpcom::interfaces::nsINetworkLinkService [] [src]

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

interface nsINetworkLinkService : nsISupports

/**
 * Network link status monitoring service.
 */

Methods

impl nsINetworkLinkService
[src]

[src]

Cast this nsINetworkLinkService to one of its base interfaces.

impl nsINetworkLinkService
[src]

LINK_TYPE_UNKNOWN: i64 = 0
LINK_TYPE_ETHERNET: i64 = 1
LINK_TYPE_USB: i64 = 2
LINK_TYPE_WIFI: i64 = 3
LINK_TYPE_WIMAX: i64 = 4
LINK_TYPE_2G: i64 = 5
LINK_TYPE_3G: i64 = 6
LINK_TYPE_4G: i64 = 7

[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;

[src]

/**
   * This is set to true when we believe that isLinkUp is accurate.
   */

readonly attribute boolean linkStatusKnown;

[src]

/**
   * The type of network connection.
   */

readonly attribute unsigned long linkType;

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

IID: nsIID = nsID(272519827, 30643, 19312, [175, 89, 110, 158, 74, 31, 153, 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 nsINetworkLinkService
[src]

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsINetworkLinkService
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.