Type Definition toad_async::Result

source ·
pub type Result<T, E> = Result<T, Error<E>>;
Expand description

Non-blocking Result

Trait Implementations§

source§

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,

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