Trait ReceiptBuilder

Source
pub trait ReceiptBuilder {
    type Transaction;
    type Receipt;

    // Required method
    fn build_receipt<E: Evm>(
        &self,
        ctx: ReceiptBuilderCtx<'_, Self::Transaction, E>,
    ) -> Self::Receipt;
}
Expand description

Type that knows how to build a receipt based on execution result.

Required Associated Types§

Source

type Transaction

Transaction type.

Source

type Receipt

Receipt type.

Required Methods§

Source

fn build_receipt<E: Evm>( &self, ctx: ReceiptBuilderCtx<'_, Self::Transaction, E>, ) -> Self::Receipt

Builds a receipt given a transaction and the result of the execution.

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.

Implementations on Foreign Types§

Source§

impl<'a, T: 'a + ReceiptBuilder + ?Sized> ReceiptBuilder for &'a T

Source§

impl<T: ReceiptBuilder + ?Sized> ReceiptBuilder for Arc<T>

Implementors§