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;
}
Available on crate features
node-api
and node
only.Expand description
Helper trait to encapsulate common bounds on NodePrimitives
for OP payload builder.
Required Associated Types§
Sourcetype _TX: SignedTransaction + OpTransaction
type _TX: SignedTransaction + OpTransaction
Helper AT to bound NodePrimitives::Block
type without causing bound cycle.
Sourcetype _Header: FullBlockHeader
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.