Skip to main content

async_error

Function async_error 

Source
pub fn async_error<E: Error + Send + 'static, T>(
    e: E,
) -> BoxFuture<'static, Result<T, E>>
Expand description

Wraps the given error in a boxed future.