#[repr(u8)]pub enum DescriptorType {
Unknown = 0,
BlockDevice = 1,
CharacterDevice = 2,
Directory = 3,
Fifo = 4,
SymbolicLink = 5,
RegularFile = 6,
Socket = 7,
}
Expand description
The type of a filesystem object referenced by a descriptor.
Note: This was called filetype
in earlier versions of WASI.
Variants§
Unknown = 0
The type of the descriptor or file is unknown or is different from any of the other types specified.
BlockDevice = 1
The descriptor refers to a block device inode.
CharacterDevice = 2
The descriptor refers to a character device inode.
Directory = 3
The descriptor refers to a directory inode.
Fifo = 4
The descriptor refers to a named pipe.
SymbolicLink = 5
The file refers to a symbolic link inode.
RegularFile = 6
The descriptor refers to a regular file inode.
Socket = 7
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§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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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.§fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more