Enum axerrno::LinuxError

source ·
#[repr(i32)]
pub enum LinuxError {
Show 131 variants EPERM, ENOENT, ESRCH, EINTR, EIO, ENXIO, E2BIG, ENOEXEC, EBADF, ECHILD, EAGAIN, ENOMEM, EACCES, EFAULT, ENOTBLK, EBUSY, EEXIST, EXDEV, ENODEV, ENOTDIR, EISDIR, EINVAL, ENFILE, EMFILE, ENOTTY, ETXTBSY, EFBIG, ENOSPC, ESPIPE, EROFS, EMLINK, EPIPE, EDOM, ERANGE, EDEADLK, ENAMETOOLONG, ENOLCK, ENOSYS, ENOTEMPTY, ELOOP, ENOMSG, EIDRM, ECHRNG, EL2NSYNC, EL3HLT, EL3RST, ELNRNG, EUNATCH, ENOCSI, EL2HLT, EBADE, EBADR, EXFULL, ENOANO, EBADRQC, EBADSLT, EBFONT, ENOSTR, ENODATA, ETIME, ENOSR, ENONET, ENOPKG, EREMOTE, ENOLINK, EADV, ESRMNT, ECOMM, EPROTO, EMULTIHOP, EDOTDOT, EBADMSG, EOVERFLOW, ENOTUNIQ, EBADFD, EREMCHG, ELIBACC, ELIBBAD, ELIBSCN, ELIBMAX, ELIBEXEC, EILSEQ, ERESTART, ESTRPIPE, EUSERS, ENOTSOCK, EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT, ESOCKTNOSUPPORT, EOPNOTSUPP, EPFNOSUPPORT, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN, ENETUNREACH, ENETRESET, ECONNABORTED, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ESHUTDOWN, ETOOMANYREFS, ETIMEDOUT, ECONNREFUSED, EHOSTDOWN, EHOSTUNREACH, EALREADY, EINPROGRESS, ESTALE, EUCLEAN, ENOTNAM, ENAVAIL, EISNAM, EREMOTEIO, EDQUOT, ENOMEDIUM, EMEDIUMTYPE, ECANCELED, ENOKEY, EKEYEXPIRED, EKEYREVOKED, EKEYREJECTED, EOWNERDEAD, ENOTRECOVERABLE, ERFKILL, EHWPOISON,
}
Expand description

Linux specific error codes defined in errno.h.

Variants§

§

EPERM

Operation not permitted

§

ENOENT

No such file or directory

§

ESRCH

No such process

§

EINTR

Interrupted system call

§

EIO

I/O error

§

ENXIO

No such device or address

§

E2BIG

Argument list too long

§

ENOEXEC

Exec format error

§

EBADF

Bad file number

§

ECHILD

No child processes

§

EAGAIN

Try again

§

ENOMEM

Out of memory

§

EACCES

Permission denied

§

EFAULT

Bad address

§

ENOTBLK

Block device required

§

EBUSY

Device or resource busy

§

EEXIST

File exists

§

EXDEV

Cross-device link

§

ENODEV

No such device

§

ENOTDIR

Not a directory

§

EISDIR

Is a directory

§

EINVAL

Invalid argument

§

ENFILE

File table overflow

§

EMFILE

Too many open files

§

ENOTTY

Not a typewriter

§

ETXTBSY

Text file busy

§

EFBIG

File too large

§

ENOSPC

No space left on device

§

ESPIPE

Illegal seek

§

EROFS

Read-only file system

Too many links

§

EPIPE

Broken pipe

§

EDOM

Math argument out of domain of func

§

ERANGE

Math result not representable

§

EDEADLK

Resource deadlock would occur

§

ENAMETOOLONG

File name too long

§

ENOLCK

No record locks available

§

ENOSYS

Invalid system call number

§

ENOTEMPTY

Directory not empty

§

ELOOP

Too many symbolic links encountered

§

ENOMSG

No message of desired type

§

EIDRM

Identifier removed

§

ECHRNG

Channel number out of range

§

EL2NSYNC

Level 2 not synchronized

§

EL3HLT

Level 3 halted

§

EL3RST

Level 3 reset

§

ELNRNG

Link number out of range

§

EUNATCH

Protocol driver not attached

§

ENOCSI

No CSI structure available

§

EL2HLT

Level 2 halted

§

EBADE

Invalid exchange

§

EBADR

Invalid request descriptor

§

EXFULL

Exchange full

§

ENOANO

No anode

§

EBADRQC

Invalid request code

§

EBADSLT

Invalid slot

§

EBFONT

Bad font file format

§

ENOSTR

Device not a stream

§

ENODATA

No data available

§

ETIME

Timer expired

§

ENOSR

Out of streams resources

§

ENONET

Machine is not on the network

§

ENOPKG

Package not installed

§

EREMOTE

Object is remote

Link has been severed

§

EADV

Advertise error

§

ESRMNT

Srmount error

§

ECOMM

Communication error on send

§

EPROTO

Protocol error

§

EMULTIHOP

Multihop attempted

§

EDOTDOT

RFS specific error

§

EBADMSG

Not a data message

§

EOVERFLOW

Value too large for defined data type

§

ENOTUNIQ

Name not unique on network

§

EBADFD

File descriptor in bad state

§

EREMCHG

Remote address changed

§

ELIBACC

Can not access a needed shared library

§

ELIBBAD

Accessing a corrupted shared library

§

ELIBSCN

.lib section in a.out corrupted

§

ELIBMAX

Attempting to link in too many shared libraries

§

ELIBEXEC

Cannot exec a shared library directly

§

EILSEQ

Illegal byte sequence

§

ERESTART

Interrupted system call should be restarted

§

ESTRPIPE

Streams pipe error

§

EUSERS

Too many users

§

ENOTSOCK

Socket operation on non-socket

§

EDESTADDRREQ

Destination address required

§

EMSGSIZE

Message too long

§

EPROTOTYPE

Protocol wrong type for socket

§

ENOPROTOOPT

Protocol not available

§

EPROTONOSUPPORT

Protocol not supported

§

ESOCKTNOSUPPORT

Socket type not supported

§

EOPNOTSUPP

Operation not supported on transport endpoint

§

EPFNOSUPPORT

Protocol family not supported

§

EAFNOSUPPORT

Address family not supported by protocol

§

EADDRINUSE

Address already in use

§

EADDRNOTAVAIL

Cannot assign requested address

§

ENETDOWN

Network is down

§

ENETUNREACH

Network is unreachable

§

ENETRESET

Network dropped connection because of reset

§

ECONNABORTED

Software caused connection abort

§

ECONNRESET

Connection reset by peer

§

ENOBUFS

No buffer space available

§

EISCONN

Transport endpoint is already connected

§

ENOTCONN

Transport endpoint is not connected

§

ESHUTDOWN

Cannot send after transport endpoint shutdown

§

ETOOMANYREFS

Too many references: cannot splice

§

ETIMEDOUT

Connection timed out

§

ECONNREFUSED

Connection refused

§

EHOSTDOWN

Host is down

§

EHOSTUNREACH

No route to host

§

EALREADY

Operation already in progress

§

EINPROGRESS

Operation now in progress

§

ESTALE

Stale file handle

§

EUCLEAN

Structure needs cleaning

§

ENOTNAM

Not a XENIX named type file

§

ENAVAIL

No XENIX semaphores available

§

EISNAM

Is a named type file

§

EREMOTEIO

Remote I/O error

§

EDQUOT

Quota exceeded

§

ENOMEDIUM

No medium found

§

EMEDIUMTYPE

Wrong medium type

§

ECANCELED

Operation Canceled

§

ENOKEY

Required key not available

§

EKEYEXPIRED

Key has expired

§

EKEYREVOKED

Key has been revoked

§

EKEYREJECTED

Key was rejected by service

§

EOWNERDEAD

Owner died

§

ENOTRECOVERABLE

State not recoverable

§

ERFKILL

Operation not possible due to RF-kill

§

EHWPOISON

Memory page has hardware error

Implementations§

source§

impl LinuxError

source

pub const fn as_str(&self) -> &'static str

Returns the error description.

source

pub const fn code(self) -> i32

Returns the error code value in i32.

Trait Implementations§

source§

impl Clone for LinuxError

source§

fn clone(&self) -> LinuxError

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for LinuxError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for LinuxError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl From<AxError> for LinuxError

source§

fn from(e: AxError) -> Self

Converts to this type from the input type.
source§

impl PartialEq<LinuxError> for LinuxError

source§

fn eq(&self, other: &LinuxError) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl TryFrom<i32> for LinuxError

§

type Error = i32

The type returned in the event of a conversion error.
source§

fn try_from(value: i32) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl Copy for LinuxError

source§

impl Eq for LinuxError

source§

impl StructuralEq for LinuxError

source§

impl StructuralPartialEq for LinuxError

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.