Trait IStore

Source
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

Required Methods§

Source

fn set(&mut self, k: String, v: Value) -> Result<(), StoreError>

Set given value using specified key

Source

fn get(&self, k: String, vk: ValueKind) -> Result<&Value, StoreError>

Retrieves a key from the store

Implementors§