[−][src]Trait libipld::store::Store
Implementable by ipld storage backends.
Required methods
fn insert<'a>(
&'a self,
cid: &'a Cid,
data: Box<[u8]>,
visibility: Visibility
) -> StoreResult<'a, ()>
&'a self,
cid: &'a Cid,
data: Box<[u8]>,
visibility: Visibility
) -> StoreResult<'a, ()>
Inserts and pins a block into the store and announces the block if it is visible.
fn flush(&self) -> StoreResult<()>
Flushes the write buffer.
fn unpin<'a>(&'a self, cid: &'a Cid) -> StoreResult<'a, ()>
Marks a block ready for garbage collection.
Implementors
impl Store for MemStore
[src]
fn insert<'a>(
&'a self,
cid: &'a Cid,
data: Box<[u8]>,
_visibility: Visibility
) -> StoreResult<'a, ()>
[src]
&'a self,
cid: &'a Cid,
data: Box<[u8]>,
_visibility: Visibility
) -> StoreResult<'a, ()>