jsonrpc_core

Trait WrapFuture

Source
pub trait WrapFuture<T, E> {
    // Required method
    fn into_future(self) -> BoxFuture<Result<T, E>>;
}
Expand description

A future-conversion trait.

Required Methods§

Source

fn into_future(self) -> BoxFuture<Result<T, E>>

Convert itself into a boxed future.

Implementations on Foreign Types§

Source§

impl<T: Send + 'static, E: Send + 'static> WrapFuture<T, E> for Result<T, E>

Implementors§

Source§

impl<T, E> WrapFuture<T, E> for BoxFuture<Result<T, E>>