pub type Result<T, E> = Result<T, Error<E>>;
Expand description
Non-blocking Result
Aliased Type§
pub enum Result<T, E> {
Ok(T),
Err(Error<E>),
}
Variants§
Trait Implementations§
Source§impl<T, E> AsyncResult<T, E> for Result<T, E>
impl<T, E> AsyncResult<T, E> for Result<T, E>
Source§fn 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)