I've looked at Tokio's intervals, but I can't figure out how to change them after I already create them.
The set-up I'm using is message passing a Duration object, which upon retrieval, should reset the interval, and start a new one based on the received Duration.
Here's an example of the code I'm using so far
fn update() {
println!("update");
}
pub fn setup_changer(mut rx_dur: Receiver<Duration>) -> Result<()> {
Ok(())
}