pub trait BitswapStoreReadWrite: BitswapStoreRead + Send + Sync + 'static {
    type Params: StoreParams;

    // Required method
    fn insert(&self, block: &Block<Self::Params>) -> Result<()>;
}
Expand description

Trait implemented by a block store for reading and writing.

Required Associated Types§

source

type Params: StoreParams

The store parameters.

Required Methods§

source

fn insert(&self, block: &Block<Self::Params>) -> Result<()>

A block response needs to insert the block into the store.

Implementations on Foreign Types§

source§

impl<T: BitswapStoreReadWrite> BitswapStoreReadWrite for Arc<T>

§

type Params = <T as BitswapStoreReadWrite>::Params

fvm_ipld_encoding::DAG_CBOR(0x71) is covered by libipld::DefaultParams under feature dag-cbor

source§

fn insert(&self, block: &Block<Self::Params>) -> Result<()>

Implementors§