Skip to main content

Errno

Struct Errno 

Source
pub struct Errno(/* private fields */);
Expand description

Represents an error code to be returned to the caller

Implementations§

Source§

impl Errno

Source

pub const EPERM: Errno

Operation not permitted

Source

pub const ENOENT: Errno

No such file or directory

Source

pub const ESRCH: Errno

No such process

Source

pub const EINTR: Errno

Interrupted system call

Source

pub const EIO: Errno

Input/output error

Source

pub const ENXIO: Errno

No such device or address

Source

pub const E2BIG: Errno

Argument list too long

Source

pub const ENOEXEC: Errno

Exec format error

Source

pub const EBADF: Errno

Bad file descriptor

Source

pub const ECHILD: Errno

No child processes

Source

pub const EAGAIN: Errno

Resource temporarily unavailable

Source

pub const ENOMEM: Errno

Cannot allocate memory

Source

pub const EACCES: Errno

Permission denied

Source

pub const EFAULT: Errno

Bad address

Source

pub const ENOTBLK: Errno

Block device required

Source

pub const EBUSY: Errno

Device or resource busy

Source

pub const EEXIST: Errno

File exists

Source

pub const EXDEV: Errno

Invalid cross-device link

Source

pub const ENODEV: Errno

No such device

Source

pub const ENOTDIR: Errno

Not a directory

Source

pub const EISDIR: Errno

Is a directory

Source

pub const EINVAL: Errno

Invalid argument

Source

pub const ENFILE: Errno

Too many open files in system

Source

pub const EMFILE: Errno

Too many open files

Source

pub const ENOTTY: Errno

Inappropriate ioctl for device

Source

pub const ETXTBSY: Errno

Text file busy

Source

pub const EFBIG: Errno

File too large

Source

pub const ENOSPC: Errno

No space left on device

Source

pub const ESPIPE: Errno

Illegal seek

Source

pub const EROFS: Errno

Read-only file system

Too many links

Source

pub const EPIPE: Errno

Broken pipe

Source

pub const EDOM: Errno

Numerical argument out of domain

Source

pub const ERANGE: Errno

Numerical result out of range

Source

pub const EDEADLK: Errno

Resource deadlock avoided

Source

pub const ENAMETOOLONG: Errno

File name too long

Source

pub const ENOLCK: Errno

No locks available

Source

pub const ENOSYS: Errno

Function not implemented

Source

pub const ENOTEMPTY: Errno

Directory not empty

Source

pub const ELOOP: Errno

Too many levels of symbolic links

Source

pub const EWOULDBLOCK: Errno

Resource temporarily unavailable

Source

pub const ENOMSG: Errno

No message of desired type

Source

pub const EIDRM: Errno

Identifier removed

Source

pub const EREMOTE: Errno

Object is remote

Link has been severed

Source

pub const EPROTO: Errno

Protocol error

Source

pub const EMULTIHOP: Errno

Multihop attempted

Source

pub const EBADMSG: Errno

Bad message

Source

pub const EOVERFLOW: Errno

Value too large for defined data type

Source

pub const EILSEQ: Errno

Invalid or incomplete multibyte or wide character

Source

pub const EUSERS: Errno

Too many users

Source

pub const ENOTSOCK: Errno

Socket operation on non-socket

Source

pub const EDESTADDRREQ: Errno

Destination address required

Source

pub const EMSGSIZE: Errno

Message too long

Source

pub const EPROTOTYPE: Errno

Protocol wrong type for socket

Source

pub const ENOPROTOOPT: Errno

Protocol not available

Source

pub const EPROTONOSUPPORT: Errno

Protocol not supported

Source

pub const ESOCKTNOSUPPORT: Errno

Socket type not supported

Source

pub const EOPNOTSUPP: Errno

Operation not supported

Source

pub const EPFNOSUPPORT: Errno

Protocol family not supported

Source

pub const EAFNOSUPPORT: Errno

Address family not supported by protocol

Source

pub const EADDRINUSE: Errno

Address already in use

Source

pub const EADDRNOTAVAIL: Errno

Cannot assign requested address

Source

pub const ENETDOWN: Errno

Network is down

Source

pub const ENETUNREACH: Errno

Network is unreachable

Source

pub const ENETRESET: Errno

Network dropped connection on reset

Source

pub const ECONNABORTED: Errno

Software caused connection abort

Source

pub const ECONNRESET: Errno

Connection reset by peer

Source

pub const ENOBUFS: Errno

No buffer space available

Source

pub const EISCONN: Errno

Transport endpoint is already connected

Source

pub const ENOTCONN: Errno

Transport endpoint is not connected

Source

pub const ESHUTDOWN: Errno

Cannot send after transport endpoint shutdown

Source

pub const ETOOMANYREFS: Errno

Too many references: cannot splice

Source

pub const ETIMEDOUT: Errno

Connection timed out

Source

pub const ECONNREFUSED: Errno

Connection refused

Source

pub const EHOSTDOWN: Errno

Host is down

Source

pub const EHOSTUNREACH: Errno

No route to host

Source

pub const EALREADY: Errno

Operation already in progress

Source

pub const EINPROGRESS: Errno

Operation now in progress

Source

pub const ESTALE: Errno

Stale file handle

Source

pub const EDQUOT: Errno

Disk quota exceeded

Source

pub const ECANCELED: Errno

Operation cancelled

Source

pub const EOWNERDEAD: Errno

Owner died

Source

pub const ENOTRECOVERABLE: Errno

State not recoverable

Source

pub const ENOTSUP: Errno

Operation not supported

Source

pub const ENODATA: Errno

No data available

Source

pub const NO_XATTR: Errno = Self::ENODATA

Use this as an error return from getxattr/removexattr to indicate that the xattr doesn’t exist. This resolves to the appropriate platform-specific error code.

Source

pub fn from_i32(err: i32) -> Errno

Make errno from i32, defaulting to EIO if it is not positive.

Source

pub fn code(self) -> i32

Errno value.

Trait Implementations§

Source§

impl Clone for Errno

Source§

fn clone(&self) -> Errno

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

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 From<Errno> for i32

Source§

fn from(x: Errno) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for Errno

Source§

fn from(err: Error) -> Self

Converts to this type from the input type.
Source§

impl From<ErrorKind> for Errno

Source§

fn from(x: ErrorKind) -> Self

Converts to this type from the input type.
Source§

impl Copy 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<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, 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.