Struct xpcom::interfaces::nsIAsyncFileMetadata
[−]
[src]
#[repr(C)]pub struct nsIAsyncFileMetadata { /* fields omitted */ }
interface nsIAsyncFileMetadata : nsIFileMetadata
Methods
impl nsIAsyncFileMetadata
[src]
pub fn coerce<T: nsIAsyncFileMetadataCoerce>(&self) -> &T
[src]
Cast this nsIAsyncFileMetadata
to one of its base interfaces.
impl nsIAsyncFileMetadata
[src]
pub unsafe fn AsyncWait(
&self,
aCallback: *const nsIFileMetadataCallback,
aEventTarget: *const nsIEventTarget
) -> nsresult
[src]
&self,
aCallback: *const nsIFileMetadataCallback,
aEventTarget: *const nsIEventTarget
) -> nsresult
/**
* Asynchronously wait for the object to be ready.
*
* @param aCallback The callback will be used when the stream is ready to
* return File metadata. Use a nullptr to cancel a
* previous operation.
*
* @param aEventTarget The event target where aCallback will be executed.
* If aCallback is passed, aEventTarget cannot be null.
*/
void asyncWait (in nsIFileMetadataCallback aCallback, in nsIEventTarget aEventTarget);
Methods from Deref<Target = nsIFileMetadata>
pub fn coerce<T: nsIFileMetadataCoerce>(&self) -> &T
[src]
Cast this nsIFileMetadata
to one of its base interfaces.
pub unsafe fn GetSize(&self, aSize: *mut int64_t) -> nsresult
[src]
/**
* File size in bytes.
*/
readonly attribute long long size;
pub unsafe fn GetLastModified(&self, aLastModified: *mut int64_t) -> nsresult
[src]
/**
* File last modified time in milliseconds from midnight (00:00:00),
* January 1, 1970 Greenwich Mean Time (GMT).
*/
readonly attribute long long lastModified;
Trait Implementations
impl XpCom for nsIAsyncFileMetadata
[src]
const IID: nsIID
IID: nsIID = nsID(3725965323, 10682, 19327, [146, 32, 163, 215, 91, 23, 174, 140])
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 nsIAsyncFileMetadata
[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 nsIAsyncFileMetadata
[src]
type Target = nsIFileMetadata
The resulting type after dereferencing.
fn deref(&self) -> &nsIFileMetadata
[src]
Dereferences the value.