Enum wasmer_wasi::WasiFsError[][src]

pub enum WasiFsError {
    BaseNotDirectory,
    NotAFile,
    InvalidFd,
    AlreadyExists,
    IOError,
    AddressInUse,
    AddressNotAvailable,
    BrokenPipe,
    ConnectionAborted,
    ConnectionRefused,
    ConnectionReset,
    Interrupted,
    InvalidData,
    InvalidInput,
    NotConnected,
    EntityNotFound,
    NoDevice,
    PermissionDenied,
    TimedOut,
    UnexpectedEof,
    WouldBlock,
    WriteZero,
    UnknownError(__wasi_errno_t),
}

Error type for external users

Variants

BaseNotDirectory

The fd given as a base was not a directory so the operation was not possible

NotAFile

Expected a file but found not a file

InvalidFd

The fd given was not usable

AlreadyExists

File exists

IOError

Something failed when doing IO. These errors can generally not be handled. It may work if tried again.

AddressInUse

The address was in use

AddressNotAvailable

The address could not be found

BrokenPipe

A pipe was closed

ConnectionAborted

The connection was aborted

ConnectionRefused

The connection request was refused

ConnectionReset

The connection was reset

Interrupted

The operation was interrupted before it could finish

InvalidData

Invalid internal data, if the argument data is invalid, use InvalidInput

InvalidInput

The provided data is invalid

NotConnected

Could not perform the operation because there was not an open connection

EntityNotFound

The requested file or directory could not be found

NoDevice

The requested device couldn't be accessed

PermissionDenied

Caller was not allowed to perform this operation

TimedOut

The operation did not complete within the given amount of time

UnexpectedEof

Found EOF when EOF was not expected

WouldBlock

Operation would block, this error lets the caller know that they can try again

WriteZero

A call to write returned 0

UnknownError(__wasi_errno_t)

A WASI error without an external name. If you encounter this it means that there's probably a bug on our side (maybe as simple as forgetting to wrap this error, but perhaps something broke)

Implementations

impl WasiFsError[src]

Trait Implementations

impl Clone for WasiFsError[src]

impl Copy for WasiFsError[src]

impl Debug for WasiFsError[src]

impl Display for WasiFsError[src]

impl Eq for WasiFsError[src]

impl Error for WasiFsError[src]

impl From<Error> for WasiFsError[src]

impl PartialEq<WasiFsError> for WasiFsError[src]

impl StructuralEq for WasiFsError[src]

impl StructuralPartialEq for WasiFsError[src]

Auto Trait Implementations

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<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.