Type Alias AsyncResult

Source
pub type AsyncResult<'a, T, E> = Pin<Box<dyn Future<Output = Result<T, E>> + Send + 'a>>;
Expand description

A type alias for a future that returns a result of type T or error E.

This is not exported to bindings users as async is only supported in Rust.

Aliased Typeยง

pub struct AsyncResult<'a, T, E> { /* private fields */ }