Skip to main content

BlobReader

Trait BlobReader 

Source
pub trait BlobReader:
    Send
    + Sync
    + Debug {
    // Required method
    fn get_vmo<'a>(
        &'a self,
        blob: &'a Hash,
    ) -> BoxFuture<'a, Result<Vmo, GetBlobVmoError>>;
}
Expand description

A reader for retrieving blob VMOs by their Merkle root hash.

Required Methods§

Source

fn get_vmo<'a>( &'a self, blob: &'a Hash, ) -> BoxFuture<'a, Result<Vmo, GetBlobVmoError>>

Returns the read-only VMO backing the blob identified by blob.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl BlobReader for BlobReaderProxy

Source§

fn get_vmo<'a>( &'a self, blob: &'a Hash, ) -> BoxFuture<'a, Result<Vmo, GetBlobVmoError>>

Implementors§