ErrnoResultExt

Trait ErrnoResultExt 

Source
pub trait ErrnoResultExt<T> {
    // Required method
    fn map_eintr(self, make_errno: impl Fn() -> Errno) -> Result<T, Errno>;
}
Expand description

An extension trait for Result<T, Errno>.

Required Methods§

Source

fn map_eintr(self, make_errno: impl Fn() -> Errno) -> Result<T, Errno>

Maps Err(EINTR) to the specified errno.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§