Trait indyrs::future::FutureFrom[][src]

pub trait FutureFrom<T> {
    type Future: Future;
    type Error;
    pub 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[src]

The future for the conversion.

type Error[src]

Possible errors during conversion.

Loading content...

Required methods

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

Consume the given value, beginning the conversion.

Loading content...

Implementors

Loading content...