Questions about tokio/futures and RwLock

You'd wrap the mutable data in a Cell or RefCell. This thread may help as well: Ownership issues with tokio and multiple types of futures - #2 by withoutboats