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]
pub fn coerce<T: nsISupportsPriorityCoerce>(&self) -> &T
[src]
Cast this nsISupportsPriority
to one of its base interfaces.
impl nsISupportsPriority
[src]
pub const PRIORITY_HIGHEST: i64
PRIORITY_HIGHEST: i64 = -20
/**
* Typical priority values.
*/
pub const PRIORITY_HIGH: i64
PRIORITY_HIGH: i64 = -10
pub const PRIORITY_NORMAL: i64
PRIORITY_NORMAL: i64 = 0
pub const PRIORITY_LOW: i64
PRIORITY_LOW: i64 = 10
pub const PRIORITY_LOWEST: i64
PRIORITY_LOWEST: i64 = 20
pub unsafe fn GetPriority(&self, aPriority: *mut int32_t) -> nsresult
[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;
pub unsafe fn SetPriority(&self, aPriority: int32_t) -> nsresult
[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;
pub unsafe fn AdjustPriority(&self, delta: int32_t) -> nsresult
[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>
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 nsISupportsPriority
[src]
const IID: nsIID
IID: nsIID = nsID(2857864004, 43989, 19481, [139, 20, 54, 212, 222, 111, 220, 54])
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 nsISupportsPriority
[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 nsISupportsPriority
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.