pub trait RepoStorage:
TufRepositoryStorage<Pouf1>
+ Send
+ Sync {
// Required methods
fn store_blob<'a>(
&'a self,
hash: &Hash,
len: u64,
path: &Utf8Path,
) -> BoxFuture<'a, Result<()>>;
fn store_delivery_blob<'a>(
&'a self,
hash: &Hash,
path: &Utf8Path,
delivery_blob_type: DeliveryBlobType,
) -> BoxFuture<'a, Result<()>>;
}Required Methods§
Sourcefn store_blob<'a>(
&'a self,
hash: &Hash,
len: u64,
path: &Utf8Path,
) -> BoxFuture<'a, Result<()>>
fn store_blob<'a>( &'a self, hash: &Hash, len: u64, path: &Utf8Path, ) -> BoxFuture<'a, Result<()>>
Store a blob in this repository.
Sourcefn store_delivery_blob<'a>(
&'a self,
hash: &Hash,
path: &Utf8Path,
delivery_blob_type: DeliveryBlobType,
) -> BoxFuture<'a, Result<()>>
fn store_delivery_blob<'a>( &'a self, hash: &Hash, path: &Utf8Path, delivery_blob_type: DeliveryBlobType, ) -> BoxFuture<'a, Result<()>>
Store a delivery blob in this repository.