gveditor-core-api 0.1.7

Graviton Core API
Documentation
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);
}