Enum Errno

Source
#[repr(i32)]
pub enum Errno {
Show 131 variants Perm = 1, Noent = 2, Srch = 3, Intr = 4, Io = 5, Nxio = 6, Toobig = 7, Noexec = 8, Badf = 9, Child = 10, Again = 11, Nomem = 12, Acces = 13, Fault = 14, Notblk = 15, Busy = 16, Exist = 17, Xdev = 18, Nodev = 19, Notdir = 20, Isdir = 21, Inval = 22, Nfile = 23, Mfile = 24, Notty = 25, Txtbsy = 26, Fbig = 27, Nospc = 28, Spipe = 29, Rofs = 30, Mlink = 31, Pipe = 32, Dom = 33, Range = 34, Deadlk = 35, Nametoolong = 36, Nolck = 37, Nosys = 38, Notempty = 39, Loop = 40, Nomsg = 42, Idrm = 43, Chrng = 44, L2nsync = 45, L3hlt = 46, L3rst = 47, Lnrng = 48, Unatch = 49, Nocsi = 50, L2hlt = 51, Bade = 52, Badr = 53, Xfull = 54, Noano = 55, Badrqc = 56, Badslt = 57, Bfont = 59, Nostr = 60, Nodata = 61, Time = 62, Nosr = 63, Nonet = 64, Nopkg = 65, Remote = 66, Nolink = 67, Adv = 68, Srmnt = 69, Comm = 70, Proto = 71, Multihop = 72, Dotdot = 73, Badmsg = 74, Overflow = 75, Notuniq = 76, Badfd = 77, Remchg = 78, Libacc = 79, Libbad = 80, Libscn = 81, Libmax = 82, Libexec = 83, Ilseq = 84, Restart = 85, Strpipe = 86, Users = 87, Notsock = 88, Destaddrreq = 89, Msgsize = 90, Prototype = 91, Noprotoopt = 92, Protonosupport = 93, Socktnosupport = 94, Opnotsupp = 95, Pfnosupport = 96, Afnosupport = 97, Addrinuse = 98, Addrnotavail = 99, Netdown = 100, Netunreach = 101, Netreset = 102, Connaborted = 103, Connreset = 104, Nobufs = 105, Isconn = 106, Notconn = 107, Shutdown = 108, Toomanyrefs = 109, Timedout = 110, Connrefused = 111, Hostdown = 112, Hostunreach = 113, Already = 114, Inprogress = 115, Stale = 116, Uclean = 117, Notnam = 118, Navail = 119, Isnam = 120, Remoteio = 121, Dquot = 122, Nomedium = 123, Mediumtype = 124, Canceled = 125, Nokey = 126, Keyexpired = 127, Keyrevoked = 128, Keyrejected = 129, Ownerdead = 130, Notrecoverable = 131, Rfkill = 132, Hwpoison = 133,
}
Expand description

The error type for I/O operations and system calls.

The values of these error numbers are the same as in Linux. See asm-generic/errno-base.h and asm-generic/errno.h for details.

Variants§

§

Perm = 1

Operation not permitted

§

Noent = 2

No such file or directory

§

Srch = 3

No such process

§

Intr = 4

Interrupted system call

§

Io = 5

I/O error

§

Nxio = 6

No such device or address

§

Toobig = 7

Argument list too long

§

Noexec = 8

Exec format error

§

Badf = 9

Bad file number

§

Child = 10

No child processes

§

Again = 11

Try again

§

Nomem = 12

Out of memory

§

Acces = 13

Permission denied

§

Fault = 14

Bad address

§

Notblk = 15

Block device required

§

Busy = 16

Device or resource busy

§

Exist = 17

File exists

§

Xdev = 18

Cross-device link

§

Nodev = 19

No such device

§

Notdir = 20

Not a directory

§

Isdir = 21

Is a directory

§

Inval = 22

Invalid argument

§

Nfile = 23

File table overflow

§

Mfile = 24

Too many open files

§

Notty = 25

Not a typewriter

§

Txtbsy = 26

Text file busy

§

Fbig = 27

File too large

§

Nospc = 28

No space left on device

§

Spipe = 29

Illegal seek

§

Rofs = 30

Read-only file system

Too many links

§

Pipe = 32

Broken pipe

§

Dom = 33

Math argument out of domain of func

§

Range = 34

Math result not representable

§

Deadlk = 35

Resource deadlock would occur

§

Nametoolong = 36

File name too long

§

Nolck = 37

No record locks available

§

Nosys = 38

Invalid system call number

§

Notempty = 39

Directory not empty

§

Loop = 40

Too many symbolic links encountered

§

Nomsg = 42

No message of desired type

§

Idrm = 43

Identifier removed

§

Chrng = 44

Channel number out of range

§

L2nsync = 45

Level 2 not synchronized

§

L3hlt = 46

Level 3 halted

§

L3rst = 47

Level 3 reset

§

Lnrng = 48

Link number out of range

§

Unatch = 49

Protocol driver not attached

§

Nocsi = 50

No CSI structure available

§

L2hlt = 51

Level 2 halted

§

Bade = 52

Invalid exchange

§

Badr = 53

Invalid request descriptor

§

Xfull = 54

Exchange full

§

Noano = 55

No anode

§

Badrqc = 56

Invalid request code

§

Badslt = 57

Invalid slot

§

Bfont = 59

Bad font file format

§

Nostr = 60

Device not a stream

§

Nodata = 61

No data available

§

Time = 62

Timer expired

§

Nosr = 63

Out of streams resources

§

Nonet = 64

Machine is not on the network

§

Nopkg = 65

Package not installed

§

Remote = 66

Object is remote

Link has been severed

§

Adv = 68

Advertise error

§

Srmnt = 69

Srmount error

§

Comm = 70

Communication error on send

§

Proto = 71

Protocol error

§

Multihop = 72

Multihop attempted

§

Dotdot = 73

RFS specific error

§

Badmsg = 74

Not a data message

§

Overflow = 75

Value too large for defined data type

§

Notuniq = 76

Name not unique on network

§

Badfd = 77

File descriptor in bad state

§

Remchg = 78

Remote address changed

§

Libacc = 79

Can not access a needed shared library

§

Libbad = 80

Accessing a corrupted shared library

§

Libscn = 81

.lib section in a.out corrupted

§

Libmax = 82

Attempting to link in too many shared libraries

§

Libexec = 83

Cannot exec a shared library directly

§

Ilseq = 84

Illegal byte sequence

§

Restart = 85

Interrupted system call should be restarted

§

Strpipe = 86

Streams pipe error

§

Users = 87

Too many users

§

Notsock = 88

Socket operation on non-socket

§

Destaddrreq = 89

Destination address required

§

Msgsize = 90

Message too long

§

Prototype = 91

Protocol wrong type for socket

§

Noprotoopt = 92

Protocol not available

§

Protonosupport = 93

Protocol not supported

§

Socktnosupport = 94

Socket type not supported

§

Opnotsupp = 95

Operation not supported on transport endpoint

§

Pfnosupport = 96

Protocol family not supported

§

Afnosupport = 97

Address family not supported by protocol

§

Addrinuse = 98

Address already in use

§

Addrnotavail = 99

Cannot assign requested address

§

Netdown = 100

Network is down

§

Netunreach = 101

Network is unreachable

§

Netreset = 102

Network dropped connection because of reset

§

Connaborted = 103

Software caused connection abort

§

Connreset = 104

Connection reset by peer

§

Nobufs = 105

No buffer space available

§

Isconn = 106

Transport endpoint is already connected

§

Notconn = 107

Transport endpoint is not connected

§

Shutdown = 108

Cannot send after transport endpoint shutdown

§

Toomanyrefs = 109

Too many references: cannot splice

§

Timedout = 110

Connection timed out

§

Connrefused = 111

Connection refused

§

Hostdown = 112

Host is down

§

Hostunreach = 113

No route to host

§

Already = 114

Operation already in progress

§

Inprogress = 115

Operation now in progress

§

Stale = 116

Stale file handle

§

Uclean = 117

Structure needs cleaning

§

Notnam = 118

Not a XENIX named type file

§

Navail = 119

No XENIX semaphores available

§

Isnam = 120

Is a named type file

§

Remoteio = 121

Remote I/O error

§

Dquot = 122

Quota exceeded

§

Nomedium = 123

No medium found

§

Mediumtype = 124

Wrong medium type

§

Canceled = 125

Operation Canceled

§

Nokey = 126

Required key not available

§

Keyexpired = 127

Key has expired

§

Keyrevoked = 128

Key has been revoked

§

Keyrejected = 129

Key was rejected by service

§

Ownerdead = 130

Owner died

§

Notrecoverable = 131

State not recoverable

§

Rfkill = 132

Operation not possible due to RF-kill

§

Hwpoison = 133

Memory page has hardware error

Trait Implementations§

Source§

impl Clone for Errno

Source§

fn clone(&self) -> Errno

Returns a duplicate of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for Errno

Source§

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

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

impl Display for Errno

Source§

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

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

impl Error for Errno

1.30.0 · Source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl From<Errno> for i32

Source§

fn from(enum_value: Errno) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for Errno

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl TryFrom<i32> for Errno

Source§

type Error = TryFromPrimitiveError<Errno>

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

fn try_from(number: i32) -> Result<Self, TryFromPrimitiveError<Self>>

Performs the conversion.
Source§

impl TryFromPrimitive for Errno

Source§

impl Copy for Errno

Source§

impl Eq for Errno

Source§

impl StructuralPartialEq for Errno

Auto Trait Implementations§

§

impl Freeze for Errno

§

impl RefUnwindSafe for Errno

§

impl Send for Errno

§

impl Sync for Errno

§

impl Unpin for Errno

§

impl UnwindSafe for Errno

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. 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 T
where 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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

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

Source§

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 T
where U: TryFrom<T>,

Source§

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.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V