[src]

Enum std::io::FileType

pub enum FileType {
    TypeFile,
    TypeDirectory,
    TypeNamedPipe,
    TypeBlockSpecial,
    TypeSymlink,
    TypeUnknown,
}

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

Variants

TypeFile

This is a normal file, corresponding to S_IFREG

TypeDirectory

This file is a directory, corresponding to S_IFDIR

TypeNamedPipe

This file is a named pipe, corresponding to S_IFIFO

TypeBlockSpecial

This file is a block device, corresponding to S_IFBLK

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

TypeUnknown

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

Trait Implementations

Derived Implementations

impl<__S: Writer> Hash<__S> for FileType

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

Compute a hash of the value.

impl Show for FileType

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

Formats the value using the given formatter.

impl Eq for FileType

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

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