pub trait LastError {
    type Output;

    // Required method
    fn last_error(self) -> IoResult<Self::Output>;
}
Expand description

Trait to convert a failed value to Result with last os error

Required Associated Types§

Required Methods§

source

fn last_error(self) -> IoResult<Self::Output>

Implementations on Foreign Types§

source§

impl<T> LastError for Option<T>

implements LastError for Option

§

type Output = T

source§

fn last_error(self) -> IoResult<Self::Output>

source§

impl<T> LastError for *const T

implements LastError for null-pointer

source§

impl LastError for bool

implements LastError for bool

source§

impl<T> LastError for *mut T

implements LastError for null-pointer

Implementors§