Skip to main content

LastError

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>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl LastError for bool

implements LastError for bool

Source§

impl<T> LastError for *const T

implements LastError for null-pointer

Source§

impl<T> LastError for *mut T

implements LastError for null-pointer

Source§

impl<T> LastError for Option<T>

implements LastError for Option

Implementors§