[−][src]Struct libuv::fs::dir::Dir
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,