Trait indyrs::future::FutureFrom [−][src]
pub trait FutureFrom<T> { type Future: Future; type Error; fn future_from(T) -> Self::Future; }
Expand description
Asynchronous conversion from a type T
.
This trait is analogous to std::convert::From
, adapted to asynchronous
computation.
Associated Types
Required methods
fn future_from(T) -> Self::Future
fn future_from(T) -> Self::Future
Consume the given value, beginning the conversion.