That snippet is really incomplete. For example, the let f = Functions { ... } is not inside any function, and the fields are missing. Please give me an example that I can actually paste as-is without changes and run.
@krishnatorque, if you want help, you'll need to put in more effort. I doubt @alice is willing to join your GitHub group and read all your code to understand your problem. That's a lot of effort.
Instead, you should come up with an example that reproduces your problem. The playground is really useful for that. If you give an example of you problem on the playground, someone can probably help fix it.
I am new to rust.
Please let me know if you do not understand any part of the code.
What I am trying to do is create an async function which will return another async closure & the main async function will be store in vector so it can be call in for loop with await.
You don't to make a whole repo, and that's not what they asked.
You could have just shared a playground link like this one, this is just your code, I didn't touch anything apart from adding #[tokio::main] before the main function, but at least this is "workable".
Is there anyone that can help me out with this please?
What I am trying to do is create an async function which will return another async closure & the main async function will be store in vector so it can be call in for loop with await .