[][src]Trait tokio::prelude::future::FutureFrom

pub trait FutureFrom<T> where
    <Self::Future as Future>::Item == Self,
    <Self::Future as Future>::Error == Self::Error
{ type Future: Future; type Error; fn future_from(T) -> Self::Future; }
[]

Asynchronous conversion from a type T.

This trait is analogous to std::convert::From, adapted to asynchronous computation.

Associated Types

type Future: Future[]

The future for the conversion.

type Error[]

Possible errors during conversion.

Required methods

fn future_from(T) -> Self::Future[]

Consume the given value, beginning the conversion.

Implementors