OpPayloadPrimitives

Trait OpPayloadPrimitives 

pub trait OpPayloadPrimitives: NodePrimitives<SignedTx = Self::_TX, BlockBody = BlockBody<Self::_TX, Self::_Header>, BlockHeader = Self::_Header>
where Self::Receipt: DepositReceipt,
{ type _TX: SignedTransaction + OpTransaction; type _Header: FullBlockHeader; }
Expand description

Helper trait to encapsulate common bounds on [NodePrimitives] for OP payload builder.

Required Associated Types§

type _TX: SignedTransaction + OpTransaction

Helper AT to bound [NodePrimitives::Block] type without causing bound cycle.

type _Header: FullBlockHeader

Helper AT to bound [NodePrimitives::Block] type without causing bound cycle.

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<Tx, T, Header> OpPayloadPrimitives for T
where Tx: SignedTransaction + OpTransaction, T: NodePrimitives<SignedTx = Tx, BlockBody = BlockBody<Tx, Header>, BlockHeader = Header>, <T as NodePrimitives>::Receipt: DepositReceipt, Header: FullBlockHeader,

§

type _TX = Tx

§

type _Header = Header