[][src]Trait pasts::prelude::DynFut

pub trait DynFut<'a, T> {
    fn fut(&'a mut self) -> DynFuture<'a, T>;
}

Trait for converting Futures into an abstraction of pinned trait objects.

Required methods

fn fut(&'a mut self) -> DynFuture<'a, T>

Turn a future into a generic type. This is useful for creating an array of Futures.

Loading content...

Implementors

impl<'a, T, F> DynFut<'a, T> for F where
    F: Future<Output = T>, 
[src]

Loading content...