Enum std::old_io::FileTypeUnstable [-] [+] [src]

pub enum FileType {
    RegularFile,
    Directory,
    NamedPipe,
    BlockSpecial,
    Symlink,
    Unknown,
}

Different kinds of files which can be identified by a call to stat

Variants

RegularFile

This is a normal file, corresponding to S_IFREG

Directory

This file is a directory, corresponding to S_IFDIR

NamedPipe

This file is a named pipe, corresponding to S_IFIFO

BlockSpecial

This file is a block device, corresponding to S_IFBLK

This file is a symbolic link to another file, corresponding to S_IFLNK

Unknown

The type of this file is not recognized as one of the other categories

Trait Implementations

Derived Implementations

impl Clone for FileType

fn clone(&self) -> FileType

fn clone_from(&mut self, source: &Self)

impl Hash for FileType

fn hash<__H: Hasher>(&self, __arg_0: &mut __H)

fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher

impl Debug for FileType

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl PartialEq for FileType

fn eq(&self, __arg_0: &FileType) -> bool

fn ne(&self, __arg_0: &FileType) -> bool

impl Copy for FileType