GetFutureFunc

Type Alias GetFutureFunc 

Source
pub type GetFutureFunc<T, O> = fn(item: T) -> Pin<Box<dyn Future<Output = (O, T)>>>;
Expand description

Get the future of a function from an object and ecapsulate the object itself with it in a new future. Use impl_getter!-macro for an easy implementation. This has to be done to assure the lifetime of the object and its functions future.