pub trait Storage {
type StoreParams: StoreParams;
// Required methods
fn get(&self, cid: &Cid) -> Result<Block, StorageError>;
fn set(&mut self, block: Block) -> Result<Cid, StorageError>;
fn remove(&mut self, cid: &Cid) -> Result<(), StorageError>;
}Expand description
Storage interface.