pub trait DataStore<E> {
    fn initialize(&mut self) -> Result<(), E>;
    fn store_data(&mut self, data: &[u8], key: &str) -> Result<(), E>;
    fn read_data(&mut self, key: &str) -> Result<Vec<u8, Global>, E>;
    fn cleanup_data(&mut self, key: &str) -> Result<(), E>;
}
Expand description

This trait should be used to persist prev_data between successive calls of an interpreter o.

Required methods

Implementors