iroh_blobs::format::collection

Trait 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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

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

Available on crate feature rpc only.