[][src]Trait xrl::IntoStaticFuture

pub trait IntoStaticFuture {
    type Future: Future<Item = Self::Item, Error = Self::Error> + 'static + Send;
    type Item;
    type Error;
    pub 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

type Future: Future<Item = Self::Item, Error = Self::Error> + 'static + Send[src]

The future that this type can be converted into.

type Item[src]

The item that the future may resolve with.

type Error[src]

The error that the future may resolve with.

Loading content...

Required methods

pub fn into_static_future(self) -> Self::Future[src]

Consumes this object and produces a future.

Loading content...

Implementors

impl<F: IntoFuture> IntoStaticFuture for F where
    <F as IntoFuture>::Future: 'static + Send
[src]

type Future = <F as IntoFuture>::Future

type Item = <F as IntoFuture>::Item

type Error = <F as IntoFuture>::Error

Loading content...