BlobFilesystem

Trait BlobFilesystem 

Source
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§

Source

fn blob_creator(&self) -> &BlobCreatorProxy

Direct access to the BlobCreator protocol.

Source

fn blob_reader(&self) -> &BlobReaderProxy

Direct access to the BlobReader protocol.

Source

fn exposed_dir(&self) -> &DirectoryProxy

Returns the exposed dir of the blob volume.

Provided Methods§

Source

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.

Source

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,

Gets a VMO backing a blob.

Implementors§