reth_primitives_traits::node

Trait NodePrimitives

Source
pub trait NodePrimitives:
    Send
    + Sync
    + Unpin
    + Clone
    + Default
    + Debug {
    type Block: Send + Sync + Unpin + Clone + Default + Debug + 'static;
    type SignedTx: Send + Sync + Unpin + Clone + Default + Debug + 'static;
    type TxType: Send + Sync + Unpin + Clone + Default + Debug + 'static;
    type Receipt: Send + Sync + Unpin + Clone + Default + Debug + 'static;
}
Expand description

Configures all the primitive types of the node.

Required Associated Types§

Source

type Block: Send + Sync + Unpin + Clone + Default + Debug + 'static

Block primitive.

Source

type SignedTx: Send + Sync + Unpin + Clone + Default + Debug + 'static

Signed version of the transaction type.

Source

type TxType: Send + Sync + Unpin + Clone + Default + Debug + 'static

Transaction envelope type ID.

Source

type Receipt: Send + Sync + Unpin + Clone + Default + Debug + 'static

A receipt.

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§

Source§

impl NodePrimitives for ()

Implementors§

Source§

impl<T> NodePrimitives for T
where T: FullNodePrimitives<Block: 'static, SignedTx: 'static, Receipt: 'static, TxType: 'static>,