[][src]Struct libuv::fs::dir::Dir

pub struct Dir { /* fields omitted */ }

Data type used for streaming directory iteration. Used by opendir(), readdir(), and closedir().

Implementations

impl Dir[src]

pub fn reserve(&mut self, size: usize)[src]

Reserve space for directories. Use this before calling readdir() for the first time to allocate space.

pub fn free_entries(&mut self)[src]

Deallocate the space for directories that was allocated with reserve()

pub fn len(&self) -> usize[src]

The number of directory entries

pub fn capacity(&self) -> usize[src]

The maximum number of directory entries that can be retrieved per call to fs_readdir

pub fn entries(&self) -> Vec<Dirent>[src]

Create an iterator over the directory entries

Auto Trait Implementations

impl RefUnwindSafe for Dir

impl !Send for Dir

impl !Sync for Dir

impl Unpin for Dir

impl UnwindSafe for Dir

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.