Trait tokio::fs::os::unix::DirEntryExt [−][src]
Unix-specific extension methods for fs::DirEntry
.
This mirrors the definition of std::os::unix::fs::DirEntryExt
.
Required methods
fn ino(&self) -> u64
[src]
Returns the underlying d_ino
field in the contained dirent
structure.
Examples
use tokio::fs; use tokio::fs::os::unix::DirEntryExt; let mut entries = fs::read_dir(".").await?; while let Some(entry) = entries.next_entry().await? { // Here, `entry` is a `DirEntry`. println!("{:?}: {}", entry.file_name(), entry.ino()); }