pub trait RemoteStore {
// Required methods
fn fetch<B: EncryptedBlob>(&self, cid: &VoidCid) -> Result<B>;
fn push<B: EncryptedBlob>(&self, blob: &B) -> Result<VoidCid>;
fn exists(&self, cid: &VoidCid) -> Result<bool>;
fn pin(&self, cid: &VoidCid) -> Result<()>;
}Expand description
Remote content-addressed storage.
All reads and writes go through typed encrypted blobs. Implementations handle CID verification internally — callers receive verified, typed blobs.
Required Methods§
Sourcefn fetch<B: EncryptedBlob>(&self, cid: &VoidCid) -> Result<B>
fn fetch<B: EncryptedBlob>(&self, cid: &VoidCid) -> Result<B>
Fetch a typed encrypted blob by CID.
Implementations must verify the fetched content matches the CID before returning.
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.