Struct xpcom::interfaces::nsIFileMetadata [] [src]

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

interface nsIFileMetadata : nsISupports

/**
 * An interface that allows you to get some metadata like file size and
 * file last modified time. These methods and attributes can throw
 * NS_BASE_STREAM_WOULD_BLOCK in case the informations are not available yet.
 * If this happens, consider the use of nsIAsyncFileMetadata.
 *
 * If using nsIAsyncFileMetadata, you should retrieve any data via this
 * interface before taking any action that might consume the underlying stream.
 * For example, once Available(), Read(), or nsIAsyncInputStream::AsyncWait()
 * are invoked, these methods may return NS_BASE_STREAM_CLOSED.  This will
 * happen when using IPCBlobInputStream with an underlying file stream, for
 * example.
 */

Methods

impl nsIFileMetadata
[src]

[src]

Cast this nsIFileMetadata to one of its base interfaces.

impl nsIFileMetadata
[src]

[src]

/**
     * File size in bytes.
     */

readonly attribute long long size;

[src]

/**
     * File last modified time in milliseconds from midnight (00:00:00),
     * January 1, 1970 Greenwich Mean Time (GMT).
     */

readonly attribute long long lastModified;

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

IID: nsIID = nsID(133593572, 38401, 19409, [181, 16, 205, 56, 82, 237, 184, 129])

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

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIFileMetadata
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.