Struct xpcom::interfaces::nsIPowerManagerService [] [src]

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

interface nsIPowerManagerService : nsISupports

/**
 * For use with non-content code.
 */

Methods

impl nsIPowerManagerService
[src]

[src]

Cast this nsIPowerManagerService to one of its base interfaces.

impl nsIPowerManagerService
[src]

[src]

void addWakeLockListener (in nsIDOMMozWakeLockListener aListener);

[src]

void removeWakeLockListener (in nsIDOMMozWakeLockListener aListener);

[src]

DOMString getWakeLockState (in DOMString aTopic);

[src]

/**
   * Return a wake lock (MozWakeLock) object of aTopic associated with aWindow.
   * A wake lock without associated window, e.g. used in chrome, is
   * always considered invisible.
   */

nsISupports newWakeLock (in DOMString aTopic, [optional] in mozIDOMWindow aWindow);

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

IID: nsIID = nsID(3128730817, 40338, 17445, [168, 59, 133, 221, 127, 169, 83, 247])

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

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIPowerManagerService
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.