Struct Errno

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

NewType wrapping some Linux error value

Implementations§

Source§

impl Errno

Source

pub const fn new(code: i32) -> Errno

Source

pub const fn raw(self) -> i32

Source§

impl Errno

Source

pub const EPERM: Errno

Source

pub const ENOENT: Errno

Source

pub const ESRCH: Errno

Source

pub const EINTR: Errno

Source

pub const EIO: Errno

Source

pub const ENXIO: Errno

Source

pub const E2BIG: Errno

Source

pub const ENOEXEC: Errno

Source

pub const EBADF: Errno

Source

pub const ECHILD: Errno

Source

pub const EAGAIN: Errno

Source

pub const ENOMEM: Errno

Source

pub const EACCES: Errno

Source

pub const EFAULT: Errno

Source

pub const ENOTBLK: Errno

Source

pub const EBUSY: Errno

Source

pub const EEXIST: Errno

Source

pub const EXDEV: Errno

Source

pub const ENODEV: Errno

Source

pub const ENOTDIR: Errno

Source

pub const EISDIR: Errno

Source

pub const EINVAL: Errno

Source

pub const ENFILE: Errno

Source

pub const EMFILE: Errno

Source

pub const ENOTTY: Errno

Source

pub const ETXTBSY: Errno

Source

pub const EFBIG: Errno

Source

pub const ENOSPC: Errno

Source

pub const ESPIPE: Errno

Source

pub const EROFS: Errno

Source

pub const EPIPE: Errno

Source

pub const EDOM: Errno

Source

pub const ERANGE: Errno

Source

pub const EDEADLK: Errno

Source

pub const ENAMETOOLONG: Errno

Source

pub const ENOLCK: Errno

Source

pub const ENOSYS: Errno

Source

pub const ENOTEMPTY: Errno

Source

pub const ELOOP: Errno

Source

pub const ENOMSG: Errno

Source

pub const EIDRM: Errno

Source

pub const ECHRNG: Errno

Source

pub const EL2NSYNC: Errno

Source

pub const EL3HLT: Errno

Source

pub const EL3RST: Errno

Source

pub const ELNRNG: Errno

Source

pub const EUNATCH: Errno

Source

pub const ENOCSI: Errno

Source

pub const EL2HLT: Errno

Source

pub const EBADE: Errno

Source

pub const EBADR: Errno

Source

pub const EXFULL: Errno

Source

pub const ENOANO: Errno

Source

pub const EBADRQC: Errno

Source

pub const EBADSLT: Errno

Source

pub const EBFONT: Errno

Source

pub const ENOSTR: Errno

Source

pub const ENODATA: Errno

Source

pub const ETIME: Errno

Source

pub const ENOSR: Errno

Source

pub const ENONET: Errno

Source

pub const ENOPKG: Errno

Source

pub const EREMOTE: Errno

Source

pub const EADV: Errno

Source

pub const ESRMNT: Errno

Source

pub const ECOMM: Errno

Source

pub const EPROTO: Errno

Source

pub const EMULTIHOP: Errno

Source

pub const EDOTDOT: Errno

Source

pub const EBADMSG: Errno

Source

pub const EOVERFLOW: Errno

Source

pub const ENOTUNIQ: Errno

Source

pub const EBADFD: Errno

Source

pub const EREMCHG: Errno

Source

pub const ELIBACC: Errno

Source

pub const ELIBBAD: Errno

Source

pub const ELIBSCN: Errno

Source

pub const ELIBMAX: Errno

Source

pub const ELIBEXEC: Errno

Source

pub const EILSEQ: Errno

Source

pub const ERESTART: Errno

Source

pub const ESTRPIPE: Errno

Source

pub const EUSERS: Errno

Source

pub const ENOTSOCK: Errno

Source

pub const EDESTADDRREQ: Errno

Source

pub const EMSGSIZE: Errno

Source

pub const EPROTOTYPE: Errno

Source

pub const ENOPROTOOPT: Errno

Source

pub const EPROTONOSUPPORT: Errno

Source

pub const ESOCKTNOSUPPORT: Errno

Source

pub const EOPNOTSUPP: Errno

Source

pub const EPFNOSUPPORT: Errno

Source

pub const EAFNOSUPPORT: Errno

Source

pub const EADDRINUSE: Errno

Source

pub const EADDRNOTAVAIL: Errno

Source

pub const ENETDOWN: Errno

Source

pub const ENETUNREACH: Errno

Source

pub const ENETRESET: Errno

Source

pub const ECONNABORTED: Errno

Source

pub const ECONNRESET: Errno

Source

pub const ENOBUFS: Errno

Source

pub const EISCONN: Errno

Source

pub const ENOTCONN: Errno

Source

pub const ESHUTDOWN: Errno

Source

pub const ETOOMANYREFS: Errno

Source

pub const ETIMEDOUT: Errno

Source

pub const ECONNREFUSED: Errno

Source

pub const EHOSTDOWN: Errno

Source

pub const EHOSTUNREACH: Errno

Source

pub const EALREADY: Errno

Source

pub const EINPROGRESS: Errno

Source

pub const ESTALE: Errno

Source

pub const EUCLEAN: Errno

Source

pub const ENOTNAM: Errno

Source

pub const ENAVAIL: Errno

Source

pub const EISNAM: Errno

Source

pub const EREMOTEIO: Errno

Source

pub const EDQUOT: Errno

Source

pub const ENOMEDIUM: Errno

Source

pub const EMEDIUMTYPE: Errno

Source

pub const ECANCELED: Errno

Source

pub const ENOKEY: Errno

Source

pub const EKEYEXPIRED: Errno

Source

pub const EKEYREVOKED: Errno

Source

pub const EKEYREJECTED: Errno

Source

pub const EOWNERDEAD: Errno

Source

pub const ENOTRECOVERABLE: Errno

Source

pub fn as_str(self) -> &'static str

Trait Implementations§

Source§

impl Clone for Errno

Source§

fn clone(&self) -> Errno

Returns a copy 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<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Display for Errno

Source§

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

Formats the value using the given formatter. Read more
Source§

impl PartialEq for Errno

Source§

fn eq(&self, other: &Errno) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for Errno

Source§

impl Eq for Errno

Source§

impl StructuralPartialEq 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> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. 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.