[−][src]Trait ipld_block_builder::ReadonlyCache
Readonly cache trait.
Required methods
#[must_use]fn get<'life0, 'life1, 'async_trait>(
&'life0 self,
cid: &'life1 Cid
) -> Pin<Box<dyn Future<Output = Result<T>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
&'life0 self,
cid: &'life1 Cid
) -> Pin<Box<dyn Future<Output = Result<T>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Returns a decoded block.
Implementors
impl<S: ReadonlyStore + Send + Sync, C, T> ReadonlyCache<C, T> for IpldCache<S, C, T> where
C: Decoder + Clone + Send + Sync,
T: Decode<<C as Decoder>::Codec> + Clone + Send + Sync, [src]
C: Decoder + Clone + Send + Sync,
T: Decode<<C as Decoder>::Codec> + Clone + Send + Sync,