[][src]Struct unix::Error

#[repr(transparent)]pub struct Error(pub NonZeroUsize);

System error

Implementations

impl Error[src]

pub fn message(self) -> &'static str[src]

Return the message for the error.

impl Error

pub const EMULTIHOP: Self

Multihop attempted

pub const EUNATCH: Self

Protocol driver not attached

pub const EAFNOSUPPORT: Self

Address family not supported by protocol

pub const EREMCHG: Self

Remote address changed

pub const EACCES: Self

Permission denied

pub const EDESTADDRREQ: Self

Destination address required

pub const EILSEQ: Self

Invalid or incomplete multibyte or wide character

pub const ESPIPE: Self

Illegal seek

Too many links

pub const EOWNERDEAD: Self

Owner died

pub const ENOTTY: Self

Inappropriate ioctl for device

pub const EBADE: Self

Invalid exchange

pub const EBADF: Self

Bad file descriptor

pub const EBADR: Self

Invalid request descriptor

pub const EADV: Self

Advertise error

pub const ERANGE: Self

Numerical result out of range

pub const ECANCELED: Self

Operation canceled

pub const ETXTBSY: Self

Text file busy

pub const ENOMEM: Self

Cannot allocate memory

pub const EINPROGRESS: Self

Operation now in progress

pub const ENOTBLK: Self

Block device required

pub const EPROTOTYPE: Self

Protocol wrong type for socket

pub const ERESTART: Self

Interrupted system call should be restarted

pub const EISNAM: Self

Is a named type file

pub const ENOMSG: Self

No message of desired type

pub const EALREADY: Self

Operation already in progress

pub const ETIMEDOUT: Self

Connection timed out

pub const ENODATA: Self

No data available

pub const EINTR: Self

Interrupted system call

Link has been severed

pub const EPERM: Self

Operation not permitted

pub const ELOOP: Self

Too many levels of symbolic links

pub const ENETDOWN: Self

Network is down

pub const ESTALE: Self

Stale file handle

pub const ENOSR: Self

Out of streams resources

pub const ELNRNG: Self

Link number out of range

pub const EPIPE: Self

Broken pipe

pub const ECHILD: Self

No child processes

pub const EBADMSG: Self

Bad message

pub const EBFONT: Self

Bad font file format

pub const EREMOTE: Self

Object is remote

pub const ETOOMANYREFS: Self

Too many references: cannot splice

pub const ENONET: Self

Machine is not on the network

pub const EXFULL: Self

Exchange full

pub const ENOTEMPTY: Self

Directory not empty

pub const ENOTNAM: Self

Not a XENIX named type file

pub const EKEYREJECTED: Self

Key was rejected by service

pub const ENOCSI: Self

No CSI structure available

pub const EADDRINUSE: Self

Address already in use

pub const ENETRESET: Self

Network dropped connection on reset

pub const EISDIR: Self

Is a directory

pub const EIDRM: Self

Identifier removed

pub const ENOTSOCK: Self

Socket operation on non-socket

pub const EHOSTUNREACH: Self

No route to host

pub const EBADFD: Self

File descriptor in bad state

pub const EL3HLT: Self

Level 3 halted

pub const EL2HLT: Self

Level 2 halted

pub const ENOKEY: Self

Required key not available

pub const EINVAL: Self

Invalid argument

pub const ESHUTDOWN: Self

Cannot send after transport endpoint shutdown

pub const ENOMEDIUM: Self

No medium found

pub const ELIBSCN: Self

.lib section in a.out corrupted

pub const ENAVAIL: Self

No XENIX semaphores available

pub const EOVERFLOW: Self

Value too large for defined data type

pub const EUCLEAN: Self

Structure needs cleaning

pub const EBUSY: Self

Device or resource busy

pub const EPROTO: Self

Protocol error

pub const ENODEV: Self

No such device

pub const EKEYEXPIRED: Self

Key has expired

pub const EROFS: Self

Read-only file system

pub const ELIBACC: Self

Can not access a needed shared library

pub const EHWPOISON: Self

Memory page has hardware error

pub const E2BIG: Self

Argument list too long

pub const EDEADLK: Self

Resource deadlock avoided

pub const EL3RST: Self

Level 3 reset

pub const ENOTDIR: Self

Not a directory

pub const ECONNRESET: Self

Connection reset by peer

pub const ENXIO: Self

No such device or address

pub const EBADRQC: Self

Invalid request code

pub const ENOSTR: Self

Device not a stream

pub const ENAMETOOLONG: Self

File name too long

pub const ESOCKTNOSUPPORT: Self

Socket type not supported

pub const ELIBEXEC: Self

Cannot exec a shared library directly

pub const EDOTDOT: Self

RFS specific error

pub const EADDRNOTAVAIL: Self

Cannot assign requested address

pub const ETIME: Self

Timer expired

pub const EPROTONOSUPPORT: Self

Protocol not supported

pub const ENOTRECOVERABLE: Self

State not recoverable

pub const EIO: Self

Input/output error

pub const ENETUNREACH: Self

Network is unreachable

pub const EXDEV: Self

Invalid cross-device link

pub const EDQUOT: Self

Disk quota exceeded

pub const EREMOTEIO: Self

Remote I/O error

pub const ENOSPC: Self

No space left on device

pub const ENOEXEC: Self

Exec format error

pub const EMSGSIZE: Self

Message too long

pub const EDOM: Self

Numerical argument out of domain

pub const EFBIG: Self

File too large

pub const ESRCH: Self

No such process

pub const ECHRNG: Self

Channel number out of range

pub const EHOSTDOWN: Self

Host is down

pub const ENOLCK: Self

No locks available

pub const ENFILE: Self

Too many open files in system

pub const ENOSYS: Self

Function not implemented

pub const ENOTCONN: Self

Transport endpoint is not connected

pub const EPFNOSUPPORT: Self

Protocol family not supported

pub const ENOTSUP: Self

Alias for EOPNOTSUPP

pub const ESRMNT: Self

Srmount error

pub const EDEADLOCK: Self

Alias for EDEADLK

pub const ECONNABORTED: Self

Software caused connection abort

pub const ENOANO: Self

No anode

pub const EISCONN: Self

Transport endpoint is already connected

pub const EUSERS: Self

Too many users

pub const ENOPROTOOPT: Self

Protocol not available

pub const ECOMM: Self

Communication error on send

pub const EMFILE: Self

Too many open files

pub const ERFKILL: Self

Operation not possible due to RF-kill

pub const ENOBUFS: Self

No buffer space available

pub const EFAULT: Self

Bad address

pub const EWOULDBLOCK: Self

Alias for EAGAIN

pub const ELIBBAD: Self

Accessing a corrupted shared library

pub const ESTRPIPE: Self

Streams pipe error

pub const ECONNREFUSED: Self

Connection refused

pub const EAGAIN: Self

Resource temporarily unavailable

pub const ELIBMAX: Self

Attempting to link in too many shared libraries

pub const EEXIST: Self

File exists

pub const EL2NSYNC: Self

Level 2 not synchronized

pub const ENOENT: Self

No such file or directory

pub const ENOPKG: Self

Package not installed

pub const EBADSLT: Self

Invalid slot

pub const EKEYREVOKED: Self

Key has been revoked

pub const ENOTUNIQ: Self

Name not unique on network

pub const EOPNOTSUPP: Self

Operation not supported

pub const EMEDIUMTYPE: Self

Wrong medium type

Trait Implementations

impl Clone for Error[src]

impl Copy for Error[src]

impl Debug for Error[src]

impl Eq for Error[src]

impl From<EndOfFile> for Error[src]

impl From<NoMemory> for Error[src]

impl From<NonZeroUsize> for Error[src]

impl PartialEq<Error> for Error[src]

impl StructuralEq for Error[src]

impl StructuralPartialEq for Error[src]

Auto Trait Implementations

impl Send for Error[src]

impl Sync for Error[src]

impl Unpin for Error[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> TryClone for T where
    T: Clone
[src]

type Error = Void

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.