Trait LastError

Source
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 LastError for bool

implements LastError for bool

Source§

impl<T> LastError for Option<T>

implements LastError for Option

Source§

impl<T> LastError for *const T

implements LastError for null-pointer

Source§

impl<T> LastError for *mut T

implements LastError for null-pointer

Implementors§