Enum std::io::FileTypeExperimental [-]  [+] [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<__S: Writer> Hash<__S> for FileType

fn hash(&self, __arg_0: &mut __S)

impl Show 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