Enum wasi_common::ErrorKind
source · #[non_exhaustive]
pub enum ErrorKind {
TooBig,
Badf,
Ilseq,
Io,
Nametoolong,
Notdir,
Notsup,
Overflow,
Range,
Spipe,
Perm,
}
Expand description
Internal error type for the wasi-common
crate.
This Contains variants of the WASI $errno
type that are used internally
by the crate, and which aren’t one-to-one with a std::io::ErrorKind
error.
When the Rust io_error_more feature is stabilized, that will enable
us to replace several more of these codes with std::io::ErrorKind
codes.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
TooBig
Errno::TooBig: Argument list too long
Badf
Errno::Badf: Bad file descriptor
Ilseq
Errno::Ilseq: Illegal byte sequence
Io
Errno::Io: I/O error
Nametoolong
Errno::Nametoolong: Filename too long
Notdir
Errno::Notdir: Not a directory or a symbolic link to a directory.
Notsup
Errno::Notsup: Not supported, or operation not supported on socket.
Overflow
Errno::Overflow: Value too large to be stored in data type.
Range
Errno::Range: Result too large
Spipe
Errno::Spipe: Invalid seek
Perm
Errno::Perm: Permission denied
Trait Implementations§
source§impl Error for ErrorKind
impl Error for ErrorKind
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
impl Copy for ErrorKind
impl Eq for ErrorKind
impl StructuralEq for ErrorKind
impl StructuralPartialEq for ErrorKind
Auto Trait Implementations§
impl RefUnwindSafe for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin for ErrorKind
impl UnwindSafe for ErrorKind
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.