[][src]Struct error_code::ErrorCode

pub struct ErrorCode<C> { /* fields omitted */ }

Describes error code in particular category.

Methods

impl ErrorCode<PosixCategory>[src]

pub fn last() -> Self[src]

Retrieves last error, generated by runtime

impl ErrorCode<SystemCategory>[src]

pub fn last() -> Self[src]

Retrieves last error, generated by OS

impl<C: Category> ErrorCode<C>[src]

pub fn new(code: i32) -> Self[src]

Creates new error code in provided category.

Trait Implementations

impl<C> Clone for ErrorCode<C>[src]

impl<C> Copy for ErrorCode<C>[src]

impl<C: Category> Debug for ErrorCode<C>[src]

impl<C: Category> Display for ErrorCode<C>[src]

impl<C> Eq for ErrorCode<C>[src]

impl<C> From<i32> for ErrorCode<C>[src]

impl<C> Hash for ErrorCode<C>[src]

impl<C> Ord for ErrorCode<C>[src]

impl<C> PartialEq<ErrorCode<C>> for ErrorCode<C>[src]

impl<C> PartialOrd<ErrorCode<C>> for ErrorCode<C>[src]

Auto Trait Implementations

impl<C> Send for ErrorCode<C> where
    C: Send

impl<C> Sync for ErrorCode<C> where
    C: Sync

impl<C> Unpin for ErrorCode<C> where
    C: Unpin

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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