Is the Singleton accessed by one thread or many?
If it’s one thread, couldn’t you just wrap the Vec
in an Rc
and then clone your singleton every time you need it in a new scope?
If it’s many, you should use channels and a dedicated logging thread imo.
Suburban car culture. People can go on and on about the how they like driving, and like the freedom to drive everywhere, even if it makes them fat and lonely. But what about their kids? It’s insane that kids are essentially trapped at home unless a parent happens to have the ability to drive that somewhere. Your convenient lifestyle comes at the cost of raising neurotic introverts who won’t go outside.