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]
pub fn coerce<T: nsIDirectoryEnumeratorCoerce>(&self) -> &T
[src]
Cast this nsIDirectoryEnumerator
to one of its base interfaces.
impl nsIDirectoryEnumerator
[src]
pub unsafe fn GetNextFile(&self, aNextFile: *mut *const nsIFile) -> nsresult
[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;
pub unsafe fn Close(&self) -> nsresult
[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>
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 nsIDirectoryEnumerator
[src]
const IID: nsIID
IID: nsIID = nsID(838333614, 26902, 20269, [168, 30, 146, 106, 78, 48, 34, 238])
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 nsIDirectoryEnumerator
[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 nsIDirectoryEnumerator
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.