pub trait IStore {
// Required methods
fn set(&mut self, k: String, v: Value) -> Result<(), StoreError>;
fn get(&self, k: String, vk: ValueKind) -> Result<&Value, StoreError>;
}Expand description
Defines the storage interface
pub trait IStore {
// Required methods
fn set(&mut self, k: String, v: Value) -> Result<(), StoreError>;
fn get(&self, k: String, vk: ValueKind) -> Result<&Value, StoreError>;
}Defines the storage interface