Trait toad_async::AsyncResult
source · 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§
sourcefn async_map_err<F, R>(self, f: F) -> Result<T, R>where
F: FnMut(E) -> R,
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)