Struct xpcom::interfaces::nsICacheDeviceInfo
[−]
[src]
#[repr(C)]pub struct nsICacheDeviceInfo { /* fields omitted */ }
interface nsICacheDeviceInfo : nsISupports
Methods
impl nsICacheDeviceInfo
[src]
pub fn coerce<T: nsICacheDeviceInfoCoerce>(&self) -> &T
[src]
Cast this nsICacheDeviceInfo
to one of its base interfaces.
impl nsICacheDeviceInfo
[src]
pub unsafe fn GetDescription(&self, aDescription: &mut nsACString) -> nsresult
[src]
/**
* Get a human readable description of the cache device.
*/
readonly attribute ACString description;
pub unsafe fn GetUsageReport(&self, aUsageReport: &mut nsACString) -> nsresult
[src]
/**
* Get a usage report, statistics, miscellaneous data about
* the cache device.
*/
readonly attribute ACString usageReport;
pub unsafe fn GetEntryCount(&self, aEntryCount: *mut uint32_t) -> nsresult
[src]
/**
* Get the number of stored cache entries.
*/
readonly attribute unsigned long entryCount;
pub unsafe fn GetTotalSize(&self, aTotalSize: *mut uint32_t) -> nsresult
[src]
/**
* Get the total size of the stored cache entries.
*/
readonly attribute unsigned long totalSize;
pub unsafe fn GetMaximumSize(&self, aMaximumSize: *mut uint32_t) -> nsresult
[src]
/**
* Get the upper limit of the size of the data the cache can store.
*/
readonly attribute unsigned long maximumSize;
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 nsICacheDeviceInfo
[src]
const IID: nsIID
IID: nsIID = nsID(835830420, 7634, 4530, [190, 58, 199, 146, 48, 220, 162, 151])
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 nsICacheDeviceInfo
[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 nsICacheDeviceInfo
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.