pub trait Storage {
// Required methods
fn set(&mut self, key: Vec<u8>, value: Vec<u8>) -> Option<Vec<u8>>;
fn get(&self, key: &[u8]) -> Option<Vec<u8>>;
fn remove(&mut self, key: &[u8]) -> Option<Vec<u8>>;
}Expand description
Storage trait