#[non_exhaustive]#[repr(u8)]pub enum filetype {
UNKNOWN = 0,
BLOCK_DEVICE = 16,
CHARACTER_DEVICE = 17,
DIRECTORY = 32,
PROCESS = 80,
REGULAR_FILE = 96,
SHARED_MEMORY = 112,
SOCKET_DGRAM = 128,
SOCKET_STREAM = 130,
SYMBOLIC_LINK = 144,
}Expand description
The type of a file descriptor or file.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
UNKNOWN = 0
The type of the file descriptor or file is unknown or is different from any of the other types specified.
BLOCK_DEVICE = 16
The file descriptor or file refers to a block device inode.
CHARACTER_DEVICE = 17
The file descriptor or file refers to a character device inode.
DIRECTORY = 32
The file descriptor or file refers to a directory inode.
PROCESS = 80
The file descriptor refers to a process handle.
REGULAR_FILE = 96
The file descriptor or file refers to a regular file inode.
SHARED_MEMORY = 112
The file descriptor refers to a shared memory object.
SOCKET_DGRAM = 128
The file descriptor or file refers to a datagram socket.
SOCKET_STREAM = 130
The file descriptor or file refers to a byte-stream socket.
SYMBOLIC_LINK = 144
The file refers to a symbolic link inode.
Trait Implementations§
impl Copy for filetype
impl Eq for filetype
impl StructuralPartialEq for filetype
Auto Trait Implementations§
impl Freeze for filetype
impl RefUnwindSafe for filetype
impl Send for filetype
impl Sync for filetype
impl Unpin for filetype
impl UnwindSafe for filetype
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more