Trait Store

Source
pub trait Store {
    // Required methods
    fn put(&self, item: &mut dyn Read) -> Result<String, Error>;
    fn get(&self, hash: &str) -> Result<File, Error>;
    fn remove(&self, hash: &str) -> Result<(), Error>;
}

Required Methods§

Source

fn put(&self, item: &mut dyn Read) -> Result<String, Error>

Source

fn get(&self, hash: &str) -> Result<File, Error>

Source

fn remove(&self, hash: &str) -> Result<(), Error>

Implementors§