Trait rmp_rpc::IntoStaticFuture[][src]

pub trait IntoStaticFuture {
    type Future: Future<Item = Self::Item, Error = Self::Error> + 'static + Send;
    type Item;
    type Error;
    fn into_static_future(self) -> Self::Future;
}

Class of types which can be converted into a future. This trait is only differs from futures::future::IntoFuture in that the returned future has the 'static lifetime.

Associated Types

The future that this type can be converted into.

The item that the future may resolve with.

The error that the future may resolve with.

Required Methods

Consumes this object and produces a future.

Implementors