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 FileType
pub fn is_dir(&self) -> bool
[src]
pub fn is_dir(&self) -> bool
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.
pub fn is_file(&self) -> bool
[src]
pub fn is_file(&self) -> bool
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.
pub fn is_symlink(&self) -> bool
[src]
pub fn is_symlink(&self) -> bool
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]
impl FileTypeExt for FileType
fn is_block_device(&self) -> bool
[src]
fn is_block_device(&self) -> bool
Returns whether this file type is a block device.
fn is_char_device(&self) -> bool
[src]
fn is_char_device(&self) -> bool
Returns whether this file type is a char device.
fn is_fifo(&self) -> bool
[src]
fn is_fifo(&self) -> bool
Returns whether this file type is a fifo.
fn is_socket(&self) -> bool
[src]
fn is_socket(&self) -> bool
Returns whether this file type is a socket.
impl Copy for FileType
[src]
impl Copy for FileType
impl Clone for FileType
[src]
impl Clone for FileType
fn clone(&self) -> FileType
[src]
fn clone(&self) -> FileType
Returns 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 FileType
fn eq(&self, other: &FileType) -> bool
[src]
fn eq(&self, other: &FileType) -> bool
This 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) -> bool
This method tests for !=
.
impl Eq for FileType
[src]
impl Eq for FileType
impl Hash for FileType
[src]
impl Hash for FileType
fn 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