Enum wasmtime_wasi::bindings::filesystem::types::DescriptorType
source · pub enum DescriptorType {
Unknown,
BlockDevice,
CharacterDevice,
Directory,
Fifo,
SymbolicLink,
RegularFile,
Socket,
}
Expand description
The type of a filesystem object referenced by a descriptor.
Note: This was called filetype
in earlier versions of WASI.
Variants§
Unknown
The type of the descriptor or file is unknown or is different from any of the other types specified.
BlockDevice
The descriptor refers to a block device inode.
CharacterDevice
The descriptor refers to a character device inode.
Directory
The descriptor refers to a directory inode.
Fifo
The descriptor refers to a named pipe.
SymbolicLink
The file refers to a symbolic link inode.
RegularFile
The descriptor refers to a regular file inode.
Socket
The descriptor refers to a socket.
Trait Implementations§
source§impl Clone for DescriptorType
impl Clone for DescriptorType
source§fn clone(&self) -> DescriptorType
fn clone(&self) -> DescriptorType
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for DescriptorType
impl Debug for DescriptorType
source§impl From<DescriptorType> for DescriptorType
impl From<DescriptorType> for DescriptorType
source§fn from(other: DescriptorType) -> Self
fn from(other: DescriptorType) -> Self
Converts to this type from the input type.
source§impl PartialEq for DescriptorType
impl PartialEq for DescriptorType
source§fn eq(&self, other: &DescriptorType) -> bool
fn eq(&self, other: &DescriptorType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<DescriptorType> for Filetype
Available on crate feature preview1
only.
impl TryFrom<DescriptorType> for Filetype
Available on crate feature
preview1
only.impl ComponentType for DescriptorType
impl Copy for DescriptorType
impl Eq for DescriptorType
impl Lift for DescriptorType
impl Lower for DescriptorType
impl StructuralPartialEq for DescriptorType
Auto Trait Implementations§
impl Freeze for DescriptorType
impl RefUnwindSafe for DescriptorType
impl Send for DescriptorType
impl Sync for DescriptorType
impl Unpin for DescriptorType
impl UnwindSafe for DescriptorType
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<T> GetSetFdFlags for T
impl<T> GetSetFdFlags for T
§fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
Query the “status” flags for the
self
file descriptor.