Struct obnth::Entry[][src]

pub struct Entry { /* fields omitted */ }

An entry encountered when iterating over a directory.

Implementations

impl Entry[src]

pub fn name(&self) -> &OsStr[src]

Get the name of this entry.

pub fn ino(&self) -> u64[src]

Get this entry's inode.

Note: If this entry refers to a mountpoint (including bind mounts on Linux), this may be the inode of the underlying directory on which the filesystem is mounted. So this value may not match, for example, self.metadata()?.ino() (which looks up the actual root directory of the mountpoint).

pub fn file_type(&self) -> Option<FileType>[src]

Get the entry's file type without making any additional syscalls, if possible.

If this returns None, the OS didn't specify a file type.

pub fn metadata(&self) -> Result<Metadata>[src]

Get the metadata for the file named by this entry.

This method will not traverse symlinks.

Trait Implementations

impl Clone for Entry[src]

impl Debug for Entry[src]

Auto Trait Implementations

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.