Struct sgx_tstd::untrusted::fs::FileType[][src]

pub struct FileType(_);

A structure representing a type of file with accessors for each file type. It is returned by Metadata::file_type method.

Methods

impl FileType
[src]

Test whether this file type represents a directory. The result is mutually exclusive to the results of [is_file] and [is_symlink]; only zero or one of these tests may pass.

Test whether this file type represents a regular file. The result is mutually exclusive to the results of [is_dir] and [is_symlink]; only zero or one of these tests may pass.

Test whether this file type represents a symbolic link. The result is mutually exclusive to the results of [is_dir] and [is_file]; only zero or one of these tests may pass.

Trait Implementations

impl FileTypeExt for FileType
[src]

Returns whether this file type is a block device.

Returns whether this file type is a char device.

Returns whether this file type is a fifo.

Returns whether this file type is a socket.

impl Copy for FileType
[src]

impl Clone for FileType
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for FileType
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for FileType
[src]

impl Hash for FileType
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl Debug for FileType
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for FileType

impl Sync for FileType