this is a reduced example: (moved from GitHub to the Rust playground, see link below)
I want to pass a mutable reference to a
dyn StoreTrait to hyper so that it can be modified from a web GUI.
It's possible that the store is in-memory, which is why i don't want it to be
Sync. The current version does not compile:
(dyn StoreTrait + std::marker::Sync + 'static)` cannot be sent between threads safely
I'd appreciate any suggestions to make a mutable in-memory store work via warp.