Struct xpcom::interfaces::nsIDirectoryEnumerator [] [src]

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

interface nsIDirectoryEnumerator : nsISupports

/**
 * This interface provides a means for enumerating the contents of a directory.
 * It is similar to nsISimpleEnumerator except the retrieved entries are QI'ed
 * to nsIFile, and there is a mechanism for closing the directory when the
 * enumeration is complete.
 */

Methods

impl nsIDirectoryEnumerator
[src]

[src]

Cast this nsIDirectoryEnumerator to one of its base interfaces.

impl nsIDirectoryEnumerator
[src]

[src]

/**
   * Retrieves the next file in the sequence. The "nextFile" element is the
   * first element upon the first call. This attribute is null if there is no
   * next element.
   */

readonly attribute nsIFile nextFile;

[src]

/**
   * Closes the directory being enumerated, releasing the system resource.
   * @throws NS_OK if the call succeeded and the directory was closed.
   *         NS_ERROR_FAILURE if the directory close failed.
   *         It is safe to call this function many times.
   */

void close ();

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

IID: nsIID = nsID(838333614, 26902, 20269, [168, 30, 146, 106, 78, 48, 34, 238])

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

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIDirectoryEnumerator
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.