Playground: Rust Playground
I'm experimenting with sending an Any across a channel. Apparently, Any doesn't require Send, so the spawn of another thread fails. I need to constrain Any to types which are Send, but how do I do that?
(Use case: passing events through a GUI library that doesn't interpret the events it is passing around, but delivers them to something that does, external to the library.)