pub type Error = Errno;Expand description
Nix’s main error type.
It’s a wrapper around Errno. As such, it’s very interoperable with
std::io::Error, but it has the advantages of:
CloneCopyEq- Small size
- Represents all of the system’s errnos, instead of just the most common ones.
Aliased Type§
#[repr(i32)]pub enum Error {
Show 132 variants
UnknownErrno = 0,
EPERM = 1,
ENOENT = 2,
ESRCH = 3,
EINTR = 4,
EIO = 5,
ENXIO = 6,
E2BIG = 7,
ENOEXEC = 8,
EBADF = 9,
ECHILD = 10,
EAGAIN = 11,
ENOMEM = 12,
EACCES = 13,
EFAULT = 14,
ENOTBLK = 15,
EBUSY = 16,
EEXIST = 17,
EXDEV = 18,
ENODEV = 19,
ENOTDIR = 20,
EISDIR = 21,
EINVAL = 22,
ENFILE = 23,
EMFILE = 24,
ENOTTY = 25,
ETXTBSY = 26,
EFBIG = 27,
ENOSPC = 28,
ESPIPE = 29,
EROFS = 30,
EMLINK = 31,
EPIPE = 32,
EDOM = 33,
ERANGE = 34,
EDEADLK = 35,
ENAMETOOLONG = 36,
ENOLCK = 37,
ENOSYS = 38,
ENOTEMPTY = 39,
ELOOP = 40,
ENOMSG = 42,
EIDRM = 43,
ECHRNG = 44,
EL2NSYNC = 45,
EL3HLT = 46,
EL3RST = 47,
ELNRNG = 48,
EUNATCH = 49,
ENOCSI = 50,
EL2HLT = 51,
EBADE = 52,
EBADR = 53,
EXFULL = 54,
ENOANO = 55,
EBADRQC = 56,
EBADSLT = 57,
EBFONT = 59,
ENOSTR = 60,
ENODATA = 61,
ETIME = 62,
ENOSR = 63,
ENONET = 64,
ENOPKG = 65,
EREMOTE = 66,
ENOLINK = 67,
EADV = 68,
ESRMNT = 69,
ECOMM = 70,
EPROTO = 71,
EMULTIHOP = 72,
EDOTDOT = 73,
EBADMSG = 74,
EOVERFLOW = 75,
ENOTUNIQ = 76,
EBADFD = 77,
EREMCHG = 78,
ELIBACC = 79,
ELIBBAD = 80,
ELIBSCN = 81,
ELIBMAX = 82,
ELIBEXEC = 83,
EILSEQ = 84,
ERESTART = 85,
ESTRPIPE = 86,
EUSERS = 87,
ENOTSOCK = 88,
EDESTADDRREQ = 89,
EMSGSIZE = 90,
EPROTOTYPE = 91,
ENOPROTOOPT = 92,
EPROTONOSUPPORT = 93,
ESOCKTNOSUPPORT = 94,
EOPNOTSUPP = 95,
EPFNOSUPPORT = 96,
EAFNOSUPPORT = 97,
EADDRINUSE = 98,
EADDRNOTAVAIL = 99,
ENETDOWN = 100,
ENETUNREACH = 101,
ENETRESET = 102,
ECONNABORTED = 103,
ECONNRESET = 104,
ENOBUFS = 105,
EISCONN = 106,
ENOTCONN = 107,
ESHUTDOWN = 108,
ETOOMANYREFS = 109,
ETIMEDOUT = 110,
ECONNREFUSED = 111,
EHOSTDOWN = 112,
EHOSTUNREACH = 113,
EALREADY = 114,
EINPROGRESS = 115,
ESTALE = 116,
EUCLEAN = 117,
ENOTNAM = 118,
ENAVAIL = 119,
EISNAM = 120,
EREMOTEIO = 121,
EDQUOT = 122,
ENOMEDIUM = 123,
EMEDIUMTYPE = 124,
ECANCELED = 125,
ENOKEY = 126,
EKEYEXPIRED = 127,
EKEYREVOKED = 128,
EKEYREJECTED = 129,
EOWNERDEAD = 130,
ENOTRECOVERABLE = 131,
ERFKILL = 132,
EHWPOISON = 133,
}Variants§
UnknownErrno = 0
EPERM = 1
ENOENT = 2
ESRCH = 3
EINTR = 4
EIO = 5
ENXIO = 6
E2BIG = 7
ENOEXEC = 8
EBADF = 9
ECHILD = 10
EAGAIN = 11
ENOMEM = 12
EACCES = 13
EFAULT = 14
ENOTBLK = 15
EBUSY = 16
EEXIST = 17
EXDEV = 18
ENODEV = 19
ENOTDIR = 20
EISDIR = 21
EINVAL = 22
ENFILE = 23
EMFILE = 24
ENOTTY = 25
ETXTBSY = 26
EFBIG = 27
ENOSPC = 28
ESPIPE = 29
EROFS = 30
EMLINK = 31
EPIPE = 32
EDOM = 33
ERANGE = 34
EDEADLK = 35
ENAMETOOLONG = 36
ENOLCK = 37
ENOSYS = 38
ENOTEMPTY = 39
ELOOP = 40
ENOMSG = 42
EIDRM = 43
ECHRNG = 44
EL2NSYNC = 45
EL3HLT = 46
EL3RST = 47
ELNRNG = 48
EUNATCH = 49
ENOCSI = 50
EL2HLT = 51
EBADE = 52
EBADR = 53
EXFULL = 54
ENOANO = 55
EBADRQC = 56
EBADSLT = 57
EBFONT = 59
ENOSTR = 60
ENODATA = 61
ETIME = 62
ENOSR = 63
ENONET = 64
ENOPKG = 65
EREMOTE = 66
ENOLINK = 67
EADV = 68
ESRMNT = 69
ECOMM = 70
EPROTO = 71
EMULTIHOP = 72
EDOTDOT = 73
EBADMSG = 74
EOVERFLOW = 75
ENOTUNIQ = 76
EBADFD = 77
EREMCHG = 78
ELIBACC = 79
ELIBBAD = 80
ELIBSCN = 81
ELIBMAX = 82
ELIBEXEC = 83
EILSEQ = 84
ERESTART = 85
ESTRPIPE = 86
EUSERS = 87
ENOTSOCK = 88
EDESTADDRREQ = 89
EMSGSIZE = 90
EPROTOTYPE = 91
ENOPROTOOPT = 92
EPROTONOSUPPORT = 93
ESOCKTNOSUPPORT = 94
EOPNOTSUPP = 95
EPFNOSUPPORT = 96
EAFNOSUPPORT = 97
EADDRINUSE = 98
EADDRNOTAVAIL = 99
ENETDOWN = 100
ENETUNREACH = 101
ENETRESET = 102
ECONNABORTED = 103
ECONNRESET = 104
ENOBUFS = 105
EISCONN = 106
ENOTCONN = 107
ESHUTDOWN = 108
ETOOMANYREFS = 109
ETIMEDOUT = 110
ECONNREFUSED = 111
EHOSTDOWN = 112
EHOSTUNREACH = 113
EALREADY = 114
EINPROGRESS = 115
ESTALE = 116
EUCLEAN = 117
ENOTNAM = 118
ENAVAIL = 119
EISNAM = 120
EREMOTEIO = 121
EDQUOT = 122
ENOMEDIUM = 123
EMEDIUMTYPE = 124
ECANCELED = 125
ENOKEY = 126
EKEYEXPIRED = 127
EKEYREVOKED = 128
EKEYREJECTED = 129
EOWNERDEAD = 130
ENOTRECOVERABLE = 131
ERFKILL = 132
EHWPOISON = 133
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 4 bytes
Size for each variant:
UnknownErrno: 0 bytesEPERM: 0 bytesENOENT: 0 bytesESRCH: 0 bytesEINTR: 0 bytesEIO: 0 bytesENXIO: 0 bytesE2BIG: 0 bytesENOEXEC: 0 bytesEBADF: 0 bytesECHILD: 0 bytesEAGAIN: 0 bytesENOMEM: 0 bytesEACCES: 0 bytesEFAULT: 0 bytesENOTBLK: 0 bytesEBUSY: 0 bytesEEXIST: 0 bytesEXDEV: 0 bytesENODEV: 0 bytesENOTDIR: 0 bytesEISDIR: 0 bytesEINVAL: 0 bytesENFILE: 0 bytesEMFILE: 0 bytesENOTTY: 0 bytesETXTBSY: 0 bytesEFBIG: 0 bytesENOSPC: 0 bytesESPIPE: 0 bytesEROFS: 0 bytesEMLINK: 0 bytesEPIPE: 0 bytesEDOM: 0 bytesERANGE: 0 bytesEDEADLK: 0 bytesENAMETOOLONG: 0 bytesENOLCK: 0 bytesENOSYS: 0 bytesENOTEMPTY: 0 bytesELOOP: 0 bytesENOMSG: 0 bytesEIDRM: 0 bytesECHRNG: 0 bytesEL2NSYNC: 0 bytesEL3HLT: 0 bytesEL3RST: 0 bytesELNRNG: 0 bytesEUNATCH: 0 bytesENOCSI: 0 bytesEL2HLT: 0 bytesEBADE: 0 bytesEBADR: 0 bytesEXFULL: 0 bytesENOANO: 0 bytesEBADRQC: 0 bytesEBADSLT: 0 bytesEBFONT: 0 bytesENOSTR: 0 bytesENODATA: 0 bytesETIME: 0 bytesENOSR: 0 bytesENONET: 0 bytesENOPKG: 0 bytesEREMOTE: 0 bytesENOLINK: 0 bytesEADV: 0 bytesESRMNT: 0 bytesECOMM: 0 bytesEPROTO: 0 bytesEMULTIHOP: 0 bytesEDOTDOT: 0 bytesEBADMSG: 0 bytesEOVERFLOW: 0 bytesENOTUNIQ: 0 bytesEBADFD: 0 bytesEREMCHG: 0 bytesELIBACC: 0 bytesELIBBAD: 0 bytesELIBSCN: 0 bytesELIBMAX: 0 bytesELIBEXEC: 0 bytesEILSEQ: 0 bytesERESTART: 0 bytesESTRPIPE: 0 bytesEUSERS: 0 bytesENOTSOCK: 0 bytesEDESTADDRREQ: 0 bytesEMSGSIZE: 0 bytesEPROTOTYPE: 0 bytesENOPROTOOPT: 0 bytesEPROTONOSUPPORT: 0 bytesESOCKTNOSUPPORT: 0 bytesEOPNOTSUPP: 0 bytesEPFNOSUPPORT: 0 bytesEAFNOSUPPORT: 0 bytesEADDRINUSE: 0 bytesEADDRNOTAVAIL: 0 bytesENETDOWN: 0 bytesENETUNREACH: 0 bytesENETRESET: 0 bytesECONNABORTED: 0 bytesECONNRESET: 0 bytesENOBUFS: 0 bytesEISCONN: 0 bytesENOTCONN: 0 bytesESHUTDOWN: 0 bytesETOOMANYREFS: 0 bytesETIMEDOUT: 0 bytesECONNREFUSED: 0 bytesEHOSTDOWN: 0 bytesEHOSTUNREACH: 0 bytesEALREADY: 0 bytesEINPROGRESS: 0 bytesESTALE: 0 bytesEUCLEAN: 0 bytesENOTNAM: 0 bytesENAVAIL: 0 bytesEISNAM: 0 bytesEREMOTEIO: 0 bytesEDQUOT: 0 bytesENOMEDIUM: 0 bytesEMEDIUMTYPE: 0 bytesECANCELED: 0 bytesENOKEY: 0 bytesEKEYEXPIRED: 0 bytesEKEYREVOKED: 0 bytesEKEYREJECTED: 0 bytesEOWNERDEAD: 0 bytesENOTRECOVERABLE: 0 bytesERFKILL: 0 bytesEHWPOISON: 0 bytes