[][src]Trait dfw::util::FutureExt

pub trait FutureExt: Future where
    Self: Send + Sized + 'static,
    Self::Item: Send + 'static,
    Self::Error: Send + 'static, 
{ fn sync(self) -> Result<Self::Item, Self::Error> { ... } }

An extension trait for Future allowing synchronized execution of the future.

Provided methods

fn sync(self) -> Result<Self::Item, Self::Error>

Execute future synchronously, blocking until a result can be returned.

Loading content...

Implementors

impl<T: Send + 'static, I: Send + 'static, E: Send + 'static> FutureExt for T where
    T: Future<Item = I, Error = E>, 
[src]

Loading content...