[][src]Trait tokio::fs::os::unix::DirEntryExt

pub trait DirEntryExt: Sealed {
    fn ino(&self) -> u64;
}
This is supported on crate feature fs only.

Unix-specific extension methods for fs::DirEntry.

This mirrors the definition of std::os::unix::fs::DirEntryExt.

Required methods

fn ino(&self) -> u64

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());
}
Loading content...

Implementors

impl DirEntryExt for DirEntry[src]

Loading content...