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]
impl FileTypepub fn is_dir(&self) -> bool[src]
pub fn is_dir(&self) -> boolTest 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.
pub fn is_file(&self) -> bool[src]
pub fn is_file(&self) -> boolTest 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.
pub fn is_symlink(&self) -> bool[src]
pub fn is_symlink(&self) -> boolTest 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]
impl FileTypeExt for FileTypefn is_block_device(&self) -> bool[src]
fn is_block_device(&self) -> boolReturns whether this file type is a block device.
fn is_char_device(&self) -> bool[src]
fn is_char_device(&self) -> boolReturns whether this file type is a char device.
fn is_fifo(&self) -> bool[src]
fn is_fifo(&self) -> boolReturns whether this file type is a fifo.
fn is_socket(&self) -> bool[src]
fn is_socket(&self) -> boolReturns whether this file type is a socket.
impl Copy for FileType[src]
impl Copy for FileTypeimpl Clone for FileType[src]
impl Clone for FileTypefn clone(&self) -> FileType[src]
fn clone(&self) -> FileTypeReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl PartialEq for FileType[src]
impl PartialEq for FileTypefn eq(&self, other: &FileType) -> bool[src]
fn eq(&self, other: &FileType) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &FileType) -> bool[src]
fn ne(&self, other: &FileType) -> boolThis method tests for !=.
impl Eq for FileType[src]
impl Eq for FileTypeimpl Hash for FileType[src]
impl Hash for FileTypefn hash<__H: Hasher>(&self, state: &mut __H)[src]
fn hash<__H: Hasher>(&self, state: &mut __H)Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, Feeds a slice of this type into the given [Hasher]. Read more
impl Debug for FileType[src]
impl Debug for FileType