pub trait AsyncResult<T, E>where
    Self: Sized,{
    // Required method
    fn async_map_err<F, R>(self, f: F) -> Result<T, R>
       where F: FnMut(E) -> R;
}
Expand description

Helper methods for crate::Result

Required Methods§

source

fn async_map_err<F, R>(self, f: F) -> Result<T, R>where F: FnMut(E) -> R,

Map the error type contained in the result (if present) preserving Ok and Err(Error::WouldBlock)

Implementors§

source§

impl<T, E> AsyncResult<T, E> for Result<T, E>