#[non_exhaustive]#[repr(u16)]pub enum ErrNo {
Show 77 variants
Success = 0,
TooBig = 1,
Access = 2,
AddrInUse = 3,
AddrNotAvail = 4,
AfNoSupport = 5,
Again = 6,
Already = 7,
BadF = 8,
BadMsg = 9,
Busy = 10,
Canceled = 11,
Child = 12,
ConnAborted = 13,
ConnRefused = 14,
ConnReset = 15,
Deadlk = 16,
DestAddrReq = 17,
Domain = 18,
DQuot = 19,
Exist = 20,
Fault = 21,
FBig = 22,
HostUnreach = 23,
IdRm = 24,
IlSeq = 25,
InProgress = 26,
Intr = 27,
Inval = 28,
Io = 29,
IsConn = 30,
IsDir = 31,
Loop = 32,
MFile = 33,
MLink = 34,
MsgSize = 35,
Multihop = 36,
NameTooLong = 37,
NetDown = 38,
NetReset = 39,
NetUnreach = 40,
NFile = 41,
NoBufS = 42,
NoDev = 43,
NoEnt = 44,
NoExec = 45,
NoLock = 46,
NoLink = 47,
NoMem = 48,
NoMsg = 49,
NoProtoOpt = 50,
NoSpace = 51,
NoSys = 52,
NotConn = 53,
NotDir = 54,
NotEmpty = 55,
NotRecoverable = 56,
NotSock = 57,
NotSup = 58,
NoTty = 59,
NxIo = 60,
Overflow = 61,
OwnerDead = 62,
Perm = 63,
Pipe = 64,
Proto = 65,
ProtoNoSupport = 66,
ProtoType = 67,
Range = 68,
RoFs = 69,
SPipe = 70,
Srch = 71,
Stale = 72,
TimedOut = 73,
TxtBsy = 74,
XDev = 75,
NotCapable = 76,
}Expand description
Error codes returned by functions.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Success = 0
No error occurred. System call completed successfully.
TooBig = 1
Argument list too long.
Access = 2
Permission denied.
AddrInUse = 3
Address in use.
AddrNotAvail = 4
Address not available.
AfNoSupport = 5
Address family not supported.
Again = 6
Resource unavailable, or operation would block.
Already = 7
Connection already in progress.
BadF = 8
Bad file descriptor.
BadMsg = 9
Bad message.
Busy = 10
Device or resource busy.
Canceled = 11
Operation canceled.
Child = 12
No child processes.
ConnAborted = 13
Connection aborted.
ConnRefused = 14
Connection refused.
ConnReset = 15
Connection reset.
Deadlk = 16
Resource deadlock would occur.
DestAddrReq = 17
Destination address required.
Domain = 18
Mathematics argument out of domain of function.
DQuot = 19
Reserved. (Quota exceeded.)
Exist = 20
File exists.
Fault = 21
Bad address.
FBig = 22
File too large.
HostUnreach = 23
Host is unreachable.
IdRm = 24
Identifier removed.
IlSeq = 25
Illegal byte sequence.
InProgress = 26
Operation in progress.
Intr = 27
Interrupted function.
Inval = 28
Invalid argument.
Io = 29
I/O error.
IsConn = 30
Socket is connected.
IsDir = 31
Is a directory.
Loop = 32
Too many levels of symbolic links.
MFile = 33
File descriptor value too large.
MLink = 34
Too many links.
MsgSize = 35
Message too large.
Multihop = 36
Reserved. (Multihop attempted.)
NameTooLong = 37
Filename too long.
NetDown = 38
Network is down.
NetReset = 39
Connection aborted by network.
NetUnreach = 40
Network unreachable.
NFile = 41
Too many files open in system.
NoBufS = 42
No buffer space available.
NoDev = 43
No such device.
NoEnt = 44
No such file or directory.
NoExec = 45
Executable file format error.
NoLock = 46
No locks available.
NoLink = 47
Reserved. (Link has been severed.)
NoMem = 48
Not enough space.
NoMsg = 49
No message of the desired type.
NoProtoOpt = 50
Protocol not available.
NoSpace = 51
No space left on device.
NoSys = 52
Function not supported. (Always unsupported.)
NotConn = 53
The socket is not connected.
NotDir = 54
Not a directory or a symbolic link to a directory.
NotEmpty = 55
Directory not empty.
NotRecoverable = 56
State not recoverable.
NotSock = 57
Not a socket.
NotSup = 58
Not supported, or operation not supported on socket. (Transient unsupported.)
NoTty = 59
Inappropriate I/O control operation.
NxIo = 60
No such device or address.
Overflow = 61
Value too large to be stored in data type.
OwnerDead = 62
Previous owner died.
Perm = 63
Operation not permitted.
Pipe = 64
Broken pipe.
Proto = 65
Protocol error.
ProtoNoSupport = 66
Protocol not supported.
ProtoType = 67
Protocol wrong type for socket.
Range = 68
Result too large.
RoFs = 69
Read-only file system.
SPipe = 70
Invalid seek.
Srch = 71
No such process.
Stale = 72
Reserved. (Stale file handle.)
TimedOut = 73
Connection timed out.
TxtBsy = 74
Text file busy.
XDev = 75
Cross-device link.
NotCapable = 76
Extension: Capabilities insufficient.