Enum HostErrno

Source
pub enum HostErrno {
Show 20 variants EPERM = 1, ENOENT = 2, EINTR = 4, EBADF = 9, EACCES = 13, EFAULT = 14, EBUSY = 16, EEXIST = 17, ENODEV = 19, ENOTDIR = 20, EISDIR = 21, EINVAL = 22, ENFILE = 23, EMFILE = 24, EFBIG = 27, ENOSPC = 28, ESPIPE = 29, EROFS = 30, ENAMETOOLONG = 91, EUNKNOWN = 9_999,
}
Expand description

Errno values for Host I/O operations.

Variants§

§

EPERM = 1

Operation not permitted (POSIX.1-2001).

§

ENOENT = 2

No such file or directory (POSIX.1-2001).

Typically, this error results when a specified pathname does not exist, or one of the components in the directory prefix of a pathname does not exist, or the specified pathname is a dangling symbolic link.

§

EINTR = 4

Interrupted function call (POSIX.1-2001); see signal(7).

§

EBADF = 9

Bad file descriptor (POSIX.1-2001).

§

EACCES = 13

Permission denied (POSIX.1-2001).

§

EFAULT = 14

Bad address (POSIX.1-2001).

§

EBUSY = 16

Device or resource busy (POSIX.1-2001).

§

EEXIST = 17

File exists (POSIX.1-2001).

§

ENODEV = 19

No such device (POSIX.1-2001).

§

ENOTDIR = 20

Not a directory (POSIX.1-2001).

§

EISDIR = 21

Is a directory (POSIX.1-2001).

§

EINVAL = 22

Invalid argument (POSIX.1-2001).

§

ENFILE = 23

Too many open files in system (POSIX.1-2001). On Linux, this is probably a result of encountering the /proc/sys/fs/file-max limit (see proc(5)).

§

EMFILE = 24

Too many open files (POSIX.1-2001). Commonly caused by exceeding the RLIMIT_NOFILE resource limit described in getrlimit(2).

§

EFBIG = 27

File too large (POSIX.1-2001).

§

ENOSPC = 28

No space left on device (POSIX.1-2001).

§

ESPIPE = 29

Invalid seek (POSIX.1-2001).

§

EROFS = 30

Read-only filesystem (POSIX.1-2001).

§

ENAMETOOLONG = 91

Filename too long (POSIX.1-2001).

§

EUNKNOWN = 9_999

Unknown errno - there may not be a GDB mapping for this value

Trait Implementations§

Source§

impl Debug for HostErrno

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

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