Type Alias melib::backends::ResultFuture

source ·
pub type ResultFuture<T> = Result<Pin<Box<dyn Future<Output = Result<T>> + Send + 'static>>>;

Aliased Type§

enum ResultFuture<T> {
    Ok(Pin<Box<dyn Future<Output = Result<T, Error>> + Send>>),
    Err(Error),
}

Variants§

§1.0.0

Ok(Pin<Box<dyn Future<Output = Result<T, Error>> + Send>>)

Contains the success value

§1.0.0

Err(Error)

Contains the error value