I'm trying to have a struct with a collection of "function pointers". I'd like to populate this structure and later on call individual functions. Something like this (stripped down version):
Thank you, I was so close but it's so difficult to tell when you don't know what you're doing.
The missing link was the function/closure returning Box::pin. I should've guessed it since I already have code that does something very similar when spawning recursive tasks. What's completely new to me is the fn(..) -> .. bit, I thought I needed Fn/FnMut/FnOnce trait.