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)
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.