reth_node_builder::node

Trait BlockReaderFor

Source
pub trait BlockReaderFor<N: NetworkPrimitives>: BlockReader<Block = N::Block, Header = N::BlockHeader, Transaction = <N::BlockBody as BlockBody>::Transaction, Receipt = N::Receipt> { }
Expand description

This is a type alias to make type bounds simpler, when we have a [NetworkPrimitives] and need a [BlockReader] whose associated types match the [NetworkPrimitives] associated types.

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§

Source§

impl<N, T> BlockReaderFor<N> for T
where N: NetworkPrimitives, T: BlockReader<Block = N::Block, Header = N::BlockHeader, Transaction = <N::BlockBody as BlockBody>::Transaction, Receipt = N::Receipt>,