pub trait BlobFilesystem: CacheClearableFilesystem {
// Required methods
fn blob_creator(&self) -> &BlobCreatorProxy;
fn blob_reader(&self) -> &BlobReaderProxy;
fn exposed_dir(&self) -> &DirectoryProxy;
// Provided methods
fn write_blob<'life0, 'life1, 'async_trait>(
&'life0 self,
blob: &'life1 DeliveryBlob,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait { ... }
fn get_vmo<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 Hash,
) -> Pin<Box<dyn Future<Output = Vmo> + Send + 'async_trait>>
where Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait { ... }
}Expand description
A trait for filesystems that support reading and writing blobs.
Required Methods§
Sourcefn blob_creator(&self) -> &BlobCreatorProxy
fn blob_creator(&self) -> &BlobCreatorProxy
Direct access to the BlobCreator protocol.
Sourcefn blob_reader(&self) -> &BlobReaderProxy
fn blob_reader(&self) -> &BlobReaderProxy
Direct access to the BlobReader protocol.
Sourcefn exposed_dir(&self) -> &DirectoryProxy
fn exposed_dir(&self) -> &DirectoryProxy
Returns the exposed dir of the blob volume.
Provided Methods§
Sourcefn write_blob<'life0, 'life1, 'async_trait>(
&'life0 self,
blob: &'life1 DeliveryBlob,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn write_blob<'life0, 'life1, 'async_trait>(
&'life0 self,
blob: &'life1 DeliveryBlob,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Writes a blob to the filesystem.