[][src]Trait banyan::store::Store

pub trait Store<L> {
    fn put(&self, data: &[u8], raw: bool) -> BoxFuture<'_, Result<L>>;
fn get(&self, cid: &L) -> BoxFuture<'_, Result<Arc<[u8]>>>; }

Required methods

fn put(&self, data: &[u8], raw: bool) -> BoxFuture<'_, Result<L>>

fn get(&self, cid: &L) -> BoxFuture<'_, Result<Arc<[u8]>>>

Loading content...

Implementors

Loading content...