[][src]Struct linux::util::error::Errno

pub struct Errno(pub c_int);

A standard error

[field, 1] The error number.

= Remarks

Error numbers between 0 and 4096 exclusive are reserved by the kernel. Error numbers between 4096 and 9999 inclusive are reserved by lrs.

= See also

  • link:man:errno(3)
  • link:lrs::error which contains constants for the error numbers returned by the kernel.

Methods

impl Errno[src]

pub fn name(self) -> Option<&'static str>[src]

Returns the name of the error in string form.

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

Returns a longer description of the error.

Trait Implementations

impl Pod for Errno[src]

impl Eq for Errno[src]

impl PartialEq<Errno> for Errno[src]

impl Copy for Errno[src]

impl Clone for Errno[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl From<Errno> for Error[src]

impl Debug for Errno[src]

impl Display for Errno[src]

Auto Trait Implementations

impl Send for Errno

impl Sync for Errno

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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

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.

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

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

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