[][src]Enum wasi_common::Error

pub enum Error {
    Guest(GuestError),
    TryFromInt(TryFromIntError),
    Utf8(Utf8Error),
    GetRandom(Error),
    UnexpectedIo(Error),
    TooBig,
    Acces,
    Badf,
    Busy,
    Exist,
    Fault,
    Fbig,
    Ilseq,
    Inval,
    Io,
    Isdir,
    Loop,
    Mfile,
    Mlink,
    Nametoolong,
    Nfile,
    Noent,
    Nomem,
    Nospc,
    Notdir,
    Notempty,
    Notsup,
    Overflow,
    Pipe,
    Perm,
    Spipe,
    Notcapable,
}

Internal error type for the wasi-common crate. Contains variants of the WASI $errno type are added according to what is actually used internally by the crate. Not all values are represented presently.

Variants

Guest(GuestError)
TryFromInt(TryFromIntError)
Utf8(Utf8Error)
GetRandom(Error)
UnexpectedIo(Error)

The host OS may return an io error that doesn't match one of the wasi errno variants we expect. We do not expose the details of this error to the user.

TooBig

Errno::TooBig: Argument list too long

Acces

Errno::Acces: Permission denied

Badf

Errno::Badf: Bad file descriptor

Busy

Errno::Busy: Device or resource busy

Exist

Errno::Exist: File exists

Fault

Errno::Fault: Bad address

Fbig

Errno::Fbig: File too large

Ilseq

Errno::Ilseq: Illegal byte sequence

Inval

Errno::Inval: Invalid argument

Io

Errno::Io: I/O error

Isdir

Errno::Isdir: Is a directory

Loop

Errno::Loop: Too many levels of symbolic links

Mfile

Errno::Mfile: File descriptor value too large

Errno::Mlink: Too many links

Nametoolong

Errno::Nametoolong: Filename too long

Nfile

Errno::Nfile: Too many files open in system

Noent

Errno::Noent: No such file or directory

Nomem

Errno::Nomem: Not enough space

Nospc

Errno::Nospc: No space left on device

Notdir

Errno::Notdir: Not a directory or a symbolic link to a directory.

Notempty

Errno::Notempty: Directory not empty.

Notsup

Errno::Notsup: Not supported, or operation not supported on socket.

Overflow

Errno::Overflow: Value too large to be stored in data type.

Pipe

Errno::Pipe: Broken pipe

Perm

Errno::Perm: Operation not permitted

Spipe

Errno::Spipe: Invalid seek

Notcapable

Errno::Notcapable: Extension: Capabilities insufficient

Trait Implementations

impl Debug for Error[src]

impl Display for Error[src]

impl Error for Error[src]

impl From<Error> for Error[src]

impl From<Error> for Error[src]

impl From<Error> for Errno[src]

impl From<GuestError> for Error[src]

impl From<Infallible> for Error[src]

impl From<TryFromIntError> for Error[src]

impl From<Utf8Error> for Error[src]

Auto Trait Implementations

impl !RefUnwindSafe for Error

impl Send for Error

impl Sync for Error

impl Unpin for Error

impl !UnwindSafe for Error

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointee for T[src]

type Pointer = u32

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.