[][src]Enum cloudabi::errno

#[repr(u16)]
#[non_exhaustive]
pub enum errno {
    SUCCESS,
    TOOBIG,
    ACCES,
    ADDRINUSE,
    ADDRNOTAVAIL,
    AFNOSUPPORT,
    AGAIN,
    ALREADY,
    BADF,
    BADMSG,
    BUSY,
    CANCELED,
    CHILD,
    CONNABORTED,
    CONNREFUSED,
    CONNRESET,
    DEADLK,
    DESTADDRREQ,
    DOM,
    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,
    NOLCK,
    NOLINK,
    NOMEM,
    NOMSG,
    NOPROTOOPT,
    NOSPC,
    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 system calls.

Not all of these error codes are returned by the system calls provided by this environment, but are either used in userspace exclusively or merely provided for alignment with POSIX.

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.

ACCES

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.

DOM

Mathematics argument out of domain of function.

DQUOT

Reserved.

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.

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.

NOLCK

No locks available.

Reserved.

NOMEM

Not enough space.

NOMSG

No message of the desired type.

NOPROTOOPT

Protocol not available.

NOSPC

No space left on device.

NOSYS

Function not supported.

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.

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.

TIMEDOUT

Connection timed out.

TXTBSY

Text file busy.

XDEV

Cross-device link.

NOTCAPABLE

Extension: Capabilities insufficient.

Trait Implementations

impl Clone for errno[src]

impl Copy for errno[src]

impl Debug for errno[src]

impl Eq for errno[src]

impl Hash for errno[src]

impl PartialEq<errno> for errno[src]

impl StructuralEq for errno[src]

impl StructuralPartialEq for errno[src]

Auto Trait Implementations

impl Send for errno

impl Sync for errno

impl Unpin for errno

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, U> Into<U> for T where
    U: From<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.