pub trait DirEntryExt: Sealed {
    // Required method
    fn ino(&self) -> u64;
}
Expand description

Unix-specific extension methods for DirEntry.

Required Methods§

source

fn ino(&self) -> u64

Returns the underlying d_ino field in the contained dirent structure.

Examples
use async_fs::unix::DirEntryExt;
use futures_lite::stream::StreamExt;

let mut entries = async_fs::read_dir(".").await?;

while let Some(entry) = entries.try_next().await? {
    println!("{:?}: {}", entry.file_name(), entry.ino());
}

Implementors§