ExpandToScannableBlock

Trait ExpandToScannableBlock 

Source
pub trait ExpandToScannableBlock: ProvidesTransactions + ProvidesOutputs {
    // Provided method
    fn expand_to_scannable_block(
        &self,
        block: Block,
    ) -> impl Send + Future<Output = Result<ScannableBlock, TransactionsError>> { ... }
}
Expand description

Extension trait for ProvidesTransactions and ProvidesOutputs`.

Provided Methods§

Source

fn expand_to_scannable_block( &self, block: Block, ) -> impl Send + Future<Output = Result<ScannableBlock, TransactionsError>>

Expand a Block to a ScannableBlock.

The resulting block will be validated to have the transactions corresponding to the block’s list of transactions.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§