reth_primitives_traits::block::body

Trait BlockBody

Source
pub trait BlockBody:
    Send
    + Sync
    + Unpin
    + Clone
    + Default
    + Debug
    + PartialEq
    + Eq
    + Encodable
    + Decodable
    + InMemorySize
    + MaybeSerde {
    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.

Implementations on Foreign Types§

Source§

impl<'a, T: 'a + BlockBody + ?Sized> BlockBody for &'a T
where &'a T: Send + Sync + Unpin + Clone + Default + Debug + PartialEq + Eq + Encodable + Decodable + InMemorySize + MaybeSerde,

Source§

impl<T: BlockBody + ?Sized> BlockBody for Arc<T>
where Arc<T>: Send + Sync + Unpin + Clone + Default + Debug + PartialEq + Eq + Encodable + Decodable + InMemorySize + MaybeSerde,

Implementors§