pub trait BlobStore: Send + Sync {
type Error: Error + Send + Sync + 'static;
// Required methods
fn get_blob(
&self,
reference: &BlobRef,
) -> Result<Option<Vec<u8>>, Self::Error>;
fn put_blob(&self, bytes: &[u8]) -> Result<BlobRef, Self::Error>;
fn delete_blob(&self, reference: &BlobRef) -> Result<(), Self::Error>;
}Expand description
Content-addressed blob storage used by large-value helpers.
Required Associated Types§
Required Methods§
Sourcefn get_blob(&self, reference: &BlobRef) -> Result<Option<Vec<u8>>, Self::Error>
fn get_blob(&self, reference: &BlobRef) -> Result<Option<Vec<u8>>, Self::Error>
Load a blob by reference.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".