1 2 3 4 5 6 7 8 9 10 11
use crate::state::StateData; pub mod file; pub mod memory; /// Persistor trait /// Make these methods async pub trait Persistor { fn load(&mut self) -> StateData; fn save(&mut self, data: &StateData); }