Skip to main content
RKTK API Docs RKTK Home Repo

rktk/config/storage/
mod.rs

1use crate::drivers::interface::storage::StorageDriver;
2
3mod read;
4mod write;
5
6pub struct StorageConfigManager<S: StorageDriver> {
7    pub storage: S,
8}
9
10pub enum ConfigKey {
11    Version = 0,
12    StateConfig = 1,
13    StateKeymap = 2,
14    Calibration = 3,
15}
16
17impl<S: StorageDriver> StorageConfigManager<S> {
18    pub fn new(storage: S) -> Self {
19        Self { storage }
20    }
21}