Struct xpcom::interfaces::nsISupportsPriority [] [src]

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

interface nsISupportsPriority : nsISupports

/**
 * This interface exposes the general notion of a scheduled object with a
 * integral priority value.  Following UNIX conventions, smaller (and possibly
 * negative) values have higher priority.
 *
 * This interface does not strictly define what happens when the priority of an
 * object is changed.  An implementation of this interface is free to define
 * the side-effects of changing the priority of an object.  In some cases,
 * changing the priority of an object may be disallowed (resulting in an
 * exception being thrown) or may simply be ignored.
 */

Methods

impl nsISupportsPriority
[src]

[src]

Cast this nsISupportsPriority to one of its base interfaces.

impl nsISupportsPriority
[src]

PRIORITY_HIGHEST: i64 = -20
/**
   * Typical priority values.
   */

PRIORITY_HIGH: i64 = -10

PRIORITY_NORMAL: i64 = 0

PRIORITY_LOW: i64 = 10

PRIORITY_LOWEST: i64 = 20

[src]

/**
   * This attribute may be modified to change the priority of this object.  The
   * implementation of this interface is free to truncate a given priority
   * value to whatever limits are appropriate.  Typically, this attribute is
   * initialized to PRIORITY_NORMAL, but implementations may choose to assign a
   * different initial value.
   */

attribute long priority;

[src]

/**
   * This attribute may be modified to change the priority of this object.  The
   * implementation of this interface is free to truncate a given priority
   * value to whatever limits are appropriate.  Typically, this attribute is
   * initialized to PRIORITY_NORMAL, but implementations may choose to assign a
   * different initial value.
   */

attribute long priority;

[src]

/**
   * This method adjusts the priority attribute by a given delta.  It helps
   * reduce the amount of coding required to increment or decrement the value
   * of the priority attribute.
   */

void adjustPriority (in long delta);

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

IID: nsIID = nsID(2857864004, 43989, 19481, [139, 20, 54, 212, 222, 111, 220, 54])

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

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsISupportsPriority
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.