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
|
TypeSymlink | 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
fn hash(&self, __arg_0: &mut __S)
Keyboard shortcuts
- ?
- Show this help dialog
- S
- Focus the search field
- ⇤
- Move up in search results
- ⇥
- Move down in search results
- ⏎
- Go to active search result
Search tricks
Prefix searches with a type followed by a colon (e.g.
fn:) to restrict the search to a given type.
Accepted types are: fn, mod,
struct, enum,
trait, typedef (or
tdef).