reth::api

Trait BlockBody

pub trait BlockBody:
    Send
    + Sync
    + Unpin
    + Clone
    + Default
    + Debug
    + PartialEq
    + Eq
    + Encodable
    + Decodable
    + InMemorySize
    + MaybeSerde
    + MaybeArbitrary {
    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<'a, T> BlockBody for &'a T
where T: 'a + BlockBody + ?Sized, &'a T: Send + Sync + Unpin + Clone + Default + Debug + PartialEq + Eq + Encodable + Decodable + InMemorySize + MaybeSerde + MaybeArbitrary,

§

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

Implementors§