Storage

Trait Storage 

Source
pub trait Storage: Send + Sync {
    // Required methods
    fn store(&self, path: &str, data: &[u8]) -> Result<String, String>;
    fn retrieve(&self, path: &str) -> Result<Vec<u8>, String>;
}
Expand description

Storage interface

Required Methods§

Source

fn store(&self, path: &str, data: &[u8]) -> Result<String, String>

Source

fn retrieve(&self, path: &str) -> Result<Vec<u8>, String>

Implementors§