reth_primitives_traits::block::body

Trait BlockBody

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

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

Abstraction for block’s body.

Required Associated Types§

Source

type Transaction: Transaction

Ordered list of signed transactions as committed in block.

Required Methods§

Source

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.

Implementors§