Enum cloudabi::filetype
[−]
[src]
#[repr(u8)]pub enum filetype { UNKNOWN, BLOCK_DEVICE, CHARACTER_DEVICE, DIRECTORY, PROCESS, REGULAR_FILE, SHARED_MEMORY, SOCKET_DGRAM, SOCKET_STREAM, SYMBOLIC_LINK, // some variants omitted }
The type of a file descriptor or file.
Variants
UNKNOWN
The type of the file descriptor or file is unknown or is different from any of the other types specified.
BLOCK_DEVICE
The file descriptor or file refers to a block device inode.
CHARACTER_DEVICE
The file descriptor or file refers to a character device inode.
DIRECTORY
The file descriptor or file refers to a directory inode.
PROCESS
The file descriptor refers to a process handle.
REGULAR_FILE
The file descriptor or file refers to a regular file inode.
SHARED_MEMORY
The file descriptor refers to a shared memory object.
SOCKET_DGRAM
The file descriptor or file refers to a datagram socket.
SOCKET_STREAM
The file descriptor or file refers to a byte-stream socket.
SYMBOLIC_LINK
The file refers to a symbolic link inode.
Trait Implementations
impl Copy for filetype
[src]
impl Clone for filetype
[src]
fn clone(&self) -> filetype
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Eq for filetype
[src]
impl PartialEq for filetype
[src]
fn eq(&self, __arg_0: &filetype) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl Hash for filetype
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
[src]
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]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more