Trait iroh_blobs::format::collection::SimpleStore

source ·
pub trait SimpleStore {
    // Required method
    fn load(
        &self,
        hash: Hash
    ) -> impl Future<Output = Result<Bytes>> + Send + '_;
}
Expand description

A simple store trait for loading blobs

Required Methods§

source

fn load(&self, hash: Hash) -> impl Future<Output = Result<Bytes>> + Send + '_

Load a blob from the store

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<C> SimpleStore for Client<C>
where C: Connector<RpcService>,

Available on crate feature rpc only.