pub trait BlobStore: Send + Sync {
// Required methods
fn get(&self, hash: &[u8; 32]) -> Option<Vec<u8>>;
fn put(&self, hash: [u8; 32], data: Vec<u8>) -> bool;
fn contains(&self, hash: &[u8; 32]) -> bool;
}Expand description
Content-addressed blob storage.
Required Methods§
Sourcefn get(&self, hash: &[u8; 32]) -> Option<Vec<u8>>
fn get(&self, hash: &[u8; 32]) -> Option<Vec<u8>>
Retrieve the blob for the given content hash, or None if absent.