Trait futures::future::FutureFrom
[−]
[src]
pub trait FutureFrom<T>: Sized { type Future: Future<Item=Self, Error=Self::Error>; 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<Item=Self, Error=Self::Error>
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.