reth_eth_wire

Trait NetPrimitivesFor

pub trait NetPrimitivesFor<N>: NetworkPrimitives<BlockHeader = <N as NodePrimitives>::BlockHeader, BlockBody = <N as NodePrimitives>::BlockBody, Block = <N as NodePrimitives>::Block, Receipt = <N as NodePrimitives>::Receipt>
where N: NodePrimitives,
{ }
Expand description

This is a helper trait for use in bounds, where some of the NetworkPrimitives associated types must be the same as the [NodePrimitives] 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§

§

impl<N, T> NetPrimitivesFor<N> for T
where N: NodePrimitives, T: NetworkPrimitives<BlockHeader = <N as NodePrimitives>::BlockHeader, BlockBody = <N as NodePrimitives>::BlockBody, Block = <N as NodePrimitives>::Block, Receipt = <N as NodePrimitives>::Receipt>,