[][src]Enum wasi_types::ErrNo

#[repr(u16)]
#[non_exhaustive]
pub enum ErrNo {
    Success,
    TooBig,
    Access,
    AddrInUse,
    AddrNotAvail,
    AfNoSupport,
    Again,
    Already,
    BadF,
    BadMsg,
    Busy,
    Canceled,
    Child,
    ConnAborted,
    ConnRefused,
    ConnReset,
    Deadlk,
    DestAddrReq,
    Domain,
    DQuot,
    Exist,
    Fault,
    FBig,
    HostUnreach,
    IdRm,
    IlSeq,
    InProgress,
    Intr,
    Inval,
    Io,
    IsConn,
    IsDir,
    Loop,
    MFile,
    MLink,
    MsgSize,
    Multihop,
    NameTooLong,
    NetDown,
    NetReset,
    NetUnreach,
    NFile,
    NoBufS,
    NoDev,
    NoEnt,
    NoExec,
    NoLock,
    NoLink,
    NoMem,
    NoMsg,
    NoProtoOpt,
    NoSpace,
    NoSys,
    NotConn,
    NotDir,
    NotEmpty,
    NotRecoverable,
    NotSock,
    NotSup,
    NoTty,
    NxIo,
    Overflow,
    OwnerDead,
    Perm,
    Pipe,
    Proto,
    ProtoNoSupport,
    ProtoType,
    Range,
    RoFs,
    SPipe,
    Srch,
    Stale,
    TimedOut,
    TxtBsy,
    XDev,
    NotCapable,
}

Error codes returned by functions.

Variants (Non-exhaustive)

Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Success

No error occurred. System call completed successfully.

TooBig

Argument list too long.

Access

Permission denied.

AddrInUse

Address in use.

AddrNotAvail

Address not available.

AfNoSupport

Address family not supported.

Again

Resource unavailable, or operation would block.

Already

Connection already in progress.

BadF

Bad file descriptor.

BadMsg

Bad message.

Busy

Device or resource busy.

Canceled

Operation canceled.

Child

No child processes.

ConnAborted

Connection aborted.

ConnRefused

Connection refused.

ConnReset

Connection reset.

Deadlk

Resource deadlock would occur.

DestAddrReq

Destination address required.

Domain

Mathematics argument out of domain of function.

DQuot

Reserved. (Quota exceeded.)

Exist

File exists.

Fault

Bad address.

FBig

File too large.

HostUnreach

Host is unreachable.

IdRm

Identifier removed.

IlSeq

Illegal byte sequence.

InProgress

Operation in progress.

Intr

Interrupted function.

Inval

Invalid argument.

Io

I/O error.

IsConn

Socket is connected.

IsDir

Is a directory.

Loop

Too many levels of symbolic links.

MFile

File descriptor value too large.

Too many links.

MsgSize

Message too large.

Multihop

Reserved. (Multihop attempted.)

NameTooLong

Filename too long.

NetDown

Network is down.

NetReset

Connection aborted by network.

NetUnreach

Network unreachable.

NFile

Too many files open in system.

NoBufS

No buffer space available.

NoDev

No such device.

NoEnt

No such file or directory.

NoExec

Executable file format error.

NoLock

No locks available.

Reserved. (Link has been severed.)

NoMem

Not enough space.

NoMsg

No message of the desired type.

NoProtoOpt

Protocol not available.

NoSpace

No space left on device.

NoSys

Function not supported. (Always unsupported.)

NotConn

The socket is not connected.

NotDir

Not a directory or a symbolic link to a directory.

NotEmpty

Directory not empty.

NotRecoverable

State not recoverable.

NotSock

Not a socket.

NotSup

Not supported, or operation not supported on socket. (Transient unsupported.)

NoTty

Inappropriate I/O control operation.

NxIo

No such device or address.

Overflow

Value too large to be stored in data type.

OwnerDead

Previous owner died.

Perm

Operation not permitted.

Pipe

Broken pipe.

Proto

Protocol error.

ProtoNoSupport

Protocol not supported.

ProtoType

Protocol wrong type for socket.

Range

Result too large.

RoFs

Read-only file system.

SPipe

Invalid seek.

Srch

No such process.

Stale

Reserved. (Stale file handle.)

TimedOut

Connection timed out.

TxtBsy

Text file busy.

XDev

Cross-device link.

NotCapable

Extension: Capabilities insufficient.

Trait Implementations

impl Eq for ErrNo[src]

impl Clone for ErrNo[src]

impl PartialEq<ErrNo> for ErrNo[src]

impl From<Error> for ErrNo[src]

impl Copy for ErrNo[src]

impl Debug for ErrNo[src]

impl TryFrom<u8> for ErrNo[src]

type Error = ()

The type returned in the event of a conversion error.

impl TryFrom<u16> for ErrNo[src]

type Error = ()

The type returned in the event of a conversion error.

Auto Trait Implementations

impl Send for ErrNo

impl Unpin for ErrNo

impl Sync for ErrNo

impl UnwindSafe for ErrNo

impl RefUnwindSafe for ErrNo

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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

impl<T> From<T> for T[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.

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

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

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