kona_derive::traits

Trait BlobProvider

Source
pub trait BlobProvider {
    type Error: Display + ToString + Into<PipelineErrorKind>;

    // Required method
    fn get_blobs<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 mut self,
        block_ref: &'life1 BlockInfo,
        blob_hashes: &'life2 [IndexedBlobHash],
    ) -> Pin<Box<dyn Future<Output = Result<Vec<Box<Blob>>, Self::Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
}
Expand description

The BlobProvider trait specifies the functionality of a data source that can provide blobs.

Required Associated Types§

Source

type Error: Display + ToString + Into<PipelineErrorKind>

The error type for the BlobProvider.

Required Methods§

Source

fn get_blobs<'life0, 'life1, 'life2, 'async_trait>( &'life0 mut self, block_ref: &'life1 BlockInfo, blob_hashes: &'life2 [IndexedBlobHash], ) -> Pin<Box<dyn Future<Output = Result<Vec<Box<Blob>>, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Fetches blobs for a given block ref and the blob hashes.

Implementors§