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§
sourcetype Params: StoreParams
type Params: StoreParams
The store parameters.