pub trait Storage: Send + Sync {
// Required methods
fn save(&self, key: &str, data: &[u8]);
fn load(&self, key: &str) -> Option<Vec<u8>>;
fn remove(&self, key: &str);
fn contains(&self, key: &str) -> bool;
}Expand description
Storage trait for state persistence commands.