Struct xpcom::interfaces::nsIMemoryReporter
[−]
[src]
#[repr(C)]pub struct nsIMemoryReporter { /* fields omitted */ }
interface nsIMemoryReporter : nsISupports
Methods
impl nsIMemoryReporter
[src]
pub fn coerce<T: nsIMemoryReporterCoerce>(&self) -> &T
[src]
Cast this nsIMemoryReporter
to one of its base interfaces.
impl nsIMemoryReporter
[src]
pub const KIND_NONHEAP: i64
KIND_NONHEAP: i64 = 0
pub const KIND_HEAP: i64
KIND_HEAP: i64 = 1
pub const KIND_OTHER: i64
KIND_OTHER: i64 = 2
pub const UNITS_BYTES: i64
UNITS_BYTES: i64 = 0
pub const UNITS_COUNT: i64
UNITS_COUNT: i64 = 1
pub const UNITS_COUNT_CUMULATIVE: i64
UNITS_COUNT_CUMULATIVE: i64 = 2
pub const UNITS_PERCENTAGE: i64
UNITS_PERCENTAGE: i64 = 3
pub unsafe fn CollectReports(
&self,
callback: *const nsIHandleReportCallback,
data: *const nsISupports,
anonymize: bool
) -> nsresult
[src]
&self,
callback: *const nsIHandleReportCallback,
data: *const nsISupports,
anonymize: bool
) -> nsresult
void collectReports (in nsIHandleReportCallback callback, in nsISupports data, in boolean anonymize);
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 nsIMemoryReporter
[src]
const IID: nsIID
IID: nsIID = nsID(2460183985, 18109, 20454, [152, 142, 71, 219, 71, 35, 109, 139])
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 nsIMemoryReporter
[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 nsIMemoryReporter
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.