Enum openat_ct::SimpleType [−][src]
pub enum SimpleType {
Unknown,
Symlink,
Dir,
File,
Other,
}
Expand description
This is a simplified file type enum that is easy to match
It doesn’t represent all the options, because that enum needs to extensible but most application do not actually need that power, so we provide this simplified enum that works for many appalications.
Variants
Entry is of unknown type
Entry is a symlink
Entry is a directory
Entry is a regular file
Entry is neither a symlink, directory nor a regular file
Implementations
Find out a simple type from a file Metadata (stat)
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for SimpleType
impl Send for SimpleType
impl Sync for SimpleType
impl Unpin for SimpleType
impl UnwindSafe for SimpleType
Blanket Implementations
Mutably borrows from an owned value. Read more