reth_node_types

Trait BlockBody

pub trait BlockBody:
    Send
    + Sync
    + Unpin
    + Clone
    + Default
    + Debug
    + PartialEq
    + Eq
    + Serialize
    + for<'de> Deserialize<'de>
    + Encodable
    + Decodable
    + InMemorySize
    + 'static {
    type Transaction: Transaction;

    // Required method
    fn transactions(&self) -> &[Self::Transaction];
}
Expand description

Abstraction for block’s body.

Required Associated Types§

type Transaction: Transaction

Ordered list of signed transactions as committed in block.

Required Methods§

fn transactions(&self) -> &[Self::Transaction]

Returns reference to transactions in block.

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§

§

impl BlockBody for BlockBody

§

type Transaction = TransactionSigned

§

fn transactions(&self) -> &[<BlockBody as BlockBody>::Transaction]

Implementors§