Enum posix_errno::Error
source · #[non_exhaustive]pub enum Error {
Show 81 variants
E2BIG,
EACCES,
EADDRINUSE,
EADDRNOTAVAIL,
EAFNOSUPPORT,
EAGAIN,
EALREADY,
EBADF,
EBADMSG,
EBUSY,
ECANCELED,
ECHILD,
ECONNABORTED,
ECONNREFUSED,
ECONNRESET,
EDEADLK,
EDESTADDRREQ,
EDOM,
EDQUOT,
EEXIST,
EFAULT,
EFBIG,
EHOSTUNREACH,
EIDRM,
EILSEQ,
EINPROGRESS,
EINTR,
EINVAL,
EIO,
EISCONN,
EISDIR,
ELOOP,
EMFILE,
EMLINK,
EMSGSIZE,
EMULTIHOP,
ENAMETOOLONG,
ENETDOWN,
ENETRESET,
ENETUNREACH,
ENFILE,
ENOBUFS,
ENODATA,
ENODEV,
ENOENT,
ENOEXEC,
ENOLCK,
ENOLINK,
ENOMEM,
ENOMSG,
ENOPROTOOPT,
ENOSPC,
ENOSR,
ENOSTR,
ENOSYS,
ENOTCONN,
ENOTDIR,
ENOTEMPTY,
ENOTRECOVERABLE,
ENOTSOCK,
ENOTSUP,
ENOTTY,
ENXIO,
EOPNOTSUPP,
EOVERFLOW,
EOWNERDEAD,
EPERM,
EPIPE,
EPROTO,
EPROTONOSUPPORT,
EPROTOTYPE,
ERANGE,
EROFS,
ESPIPE,
ESRCH,
ESTALE,
ETIME,
ETIMEDOUT,
ETXTBSY,
EWOULDBLOCK,
EXDEV,
}
Expand description
Symbolic constants for error numbers defined in the POSIX standard.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
E2BIG
Argument list too long.
EACCES
Permission denied.
EADDRINUSE
Address in use.
EADDRNOTAVAIL
Address not available.
EAFNOSUPPORT
Address family not supported.
EAGAIN
Resource unavailable, try again.
EALREADY
Connection already in progress.
EBADF
Bad file descriptor.
EBADMSG
Bad message.
EBUSY
Device or resource busy.
ECANCELED
Operation canceled.
ECHILD
No child processes.
ECONNABORTED
Connection aborted.
ECONNREFUSED
Connection refused.
ECONNRESET
Connection reset.
EDEADLK
Resource deadlock would occur.
EDESTADDRREQ
Destination address required.
EDOM
Mathematics argument out of domain of function.
EDQUOT
Reserved.
EEXIST
File exists.
EFAULT
Bad address.
EFBIG
File too large.
EHOSTUNREACH
Host is unreachable.
EIDRM
Identifier removed.
EILSEQ
Illegal byte sequence.
EINPROGRESS
Operation in progress.
EINTR
Interrupted function.
EINVAL
Invalid argument.
EIO
I/O error.
EISCONN
Socket is connected.
EISDIR
Is a directory.
ELOOP
Too many levels of symbolic links.
EMFILE
File descriptor value too large.
EMLINK
Too many links.
EMSGSIZE
Message too large.
EMULTIHOP
Reserved.
ENAMETOOLONG
Filename too long.
ENETDOWN
Network is down.
ENETRESET
Connection aborted by network.
ENETUNREACH
Network unreachable.
ENFILE
Too many files open in system.
ENOBUFS
No buffer space available.
ENODATA
No message is available on the STREAM head read queue.
ENODEV
No such device.
ENOENT
No such file or directory.
ENOEXEC
Executable file format error.
ENOLCK
No locks available.
ENOLINK
Reserved.
ENOMEM
Not enough space.
ENOMSG
No message of the desired type.
ENOPROTOOPT
Protocol not available.
ENOSPC
No space left on device.
ENOSR
No STREAM resources.
ENOSTR
Not a STREAM.
ENOSYS
Functionality not supported.
ENOTCONN
The socket is not connected.
ENOTDIR
Not a directory or a symbolic link to a directory.
ENOTEMPTY
Directory not empty.
ENOTRECOVERABLE
State not recoverable.
ENOTSOCK
Not a socket.
ENOTSUP
Not supported.
ENOTTY
Inappropriate I/O control operation.
ENXIO
No such device or address.
EOPNOTSUPP
Operation not supported on socket.
EOVERFLOW
Value too large to be stored in data type.
EOWNERDEAD
Previous owner died.
EPERM
Operation not permitted.
EPIPE
Broken pipe.
EPROTO
Protocol error.
EPROTONOSUPPORT
Protocol not supported.
EPROTOTYPE
Protocol wrong type for socket.
ERANGE
Result too large.
EROFS
Read-only file system.
ESPIPE
Invalid seek.
ESRCH
No such process.
ESTALE
Reserved.
ETIME
Stream ioctl() timeout.
ETIMEDOUT
Connection timed out.
ETXTBSY
Text file busy.
EWOULDBLOCK
Operation would block.
EXDEV
Cross-device link.
Trait Implementations§
source§impl Ord for Error
impl Ord for Error
source§impl PartialOrd for Error
impl PartialOrd for Error
impl Copy for Error
impl Eq for Error
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)