Ok, Consider my spaceship has just landed into Rust Plant after long trip from C++ planet!
In C++ is common to have an
App instance which holds most of the modules. Probably it has three main methods: one for initializing modules, one for starting them and one for closing or stopping them.
Starting modules can run modules in worker threads that has almost same lifetime as main thread.
It's kind of bad design pattern in Rust. I know. I would like to know what is your suggestion.
I have a piece of code in my spaceship which is translated from C++ into rust. But it doesn't work. My space ship is not working now unless I found a solution for that.
I appreciate your help.