pub trait Storage { // Required methods fn get(&self, cid: &Cid) -> Block; fn set(&mut self, block: Block) -> Cid; }
Storage interface.
Returns a block from storage.
Inserts a block into storage.