#[repr(u32)]pub enum FileType {
Dir,
Reg,
}
Expand description
The type of a file (regular, directory, etc).
Variants§
Implementations§
source§impl FileType
impl FileType
sourcepub fn from_value(value: mode_t) -> Result<Self>
pub fn from_value(value: mode_t) -> Result<Self>
Attempts to convert the given mode bits into a FileType
enum value.
pub fn dir_entry_kind(self) -> DirEntryKind
Trait Implementations§
source§impl<'de> Deserialize<'de> for FileType
impl<'de> Deserialize<'de> for FileType
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<FileType> for DirEntryKind
impl From<FileType> for DirEntryKind
source§impl PartialEq<FileType> for FileType
impl PartialEq<FileType> for FileType
impl Eq for FileType
impl StructuralEq for FileType
impl StructuralPartialEq for FileType
Auto Trait Implementations§
impl RefUnwindSafe for FileType
impl Send for FileType
impl Sync for FileType
impl Unpin for FileType
impl UnwindSafe for FileType
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more