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
|
Symlink | 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
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
).