[][src]Enum gio::FileType

pub enum FileType {
    Unknown,
    Regular,
    Directory,
    SymbolicLink,
    Special,
    Shortcut,
    Mountable,
    // some variants omitted
}

Indicates the file's on-disk type.

On Windows systems a file will never have FileType::SymbolicLink type; use FileInfo and G_FILE_ATTRIBUTE_STANDARD_IS_SYMLINK to determine whether a file is a symlink or not. This is due to the fact that NTFS does not have a single filesystem object type for symbolic links - it has files that symlink to files, and directories that symlink to directories. FileType enumeration cannot precisely represent this important distinction, which is why all Windows symlinks will continue to be reported as FileType::Regular or FileType::Directory.

Variants

Unknown
Regular
Directory
Special
Shortcut
Mountable

Trait Implementations

impl Clone for FileType[src]

impl Copy for FileType[src]

impl Debug for FileType[src]

impl Display for FileType[src]

impl Eq for FileType[src]

impl<'a> FromValue<'a> for FileType[src]

impl<'a> FromValueOptional<'a> for FileType[src]

impl Hash for FileType[src]

impl Ord for FileType[src]

impl PartialEq<FileType> for FileType[src]

impl PartialOrd<FileType> for FileType[src]

impl SetValue for FileType[src]

impl StaticType for FileType[src]

impl StructuralEq for FileType[src]

impl StructuralPartialEq for FileType[src]

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToSendValue for T where
    T: ToValue + SetValue + Send + ?Sized
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> ToValue for T where
    T: SetValue + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.