// SPDX-License-Identifier: Apache-2.0
usemulti_cid::Cid;/// Block storage trait for getting and putting content address data
pubtraitBlocks{/// The error type returned in put
typeError;/// Try to get a block from it's content address
fnget(&self, cid:&Cid)->Result<Vec<u8>, Self::Error>;/// Try to put a block and get back its content address
fnput<F:Fn(&dyn AsRef<[u8]>)->Result<Cid, Self::Error>>(&mutself, data:&dyn AsRef<[u8]>, gen_cid: F)->Result<Cid, Self::Error>;}