Type Alias Result

Source
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§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(Error<E>)

Contains the error value

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)