Trait NodePrimitives

Source
pub trait NodePrimitives:
    Send
    + Sync
    + Unpin
    + Clone
    + Default
    + Debug
    + PartialEq
    + Eq
    + 'static {
    type Block: Block<Header = Self::BlockHeader, Body = Self::BlockBody> + MaybeSerdeBincodeCompat;
    type BlockHeader: FullBlockHeader;
    type BlockBody: FullBlockBody<Transaction = Self::SignedTx, OmmerHeader = Self::BlockHeader>;
    type SignedTx: FullSignedTx;
    type Receipt: Receipt;
}
Expand description

Configures all the primitive types of the node.

Required Associated Types§

Source

type Block: Block<Header = Self::BlockHeader, Body = Self::BlockBody> + MaybeSerdeBincodeCompat

Block primitive.

Source

type BlockHeader: FullBlockHeader

Block header primitive.

Source

type BlockBody: FullBlockBody<Transaction = Self::SignedTx, OmmerHeader = Self::BlockHeader>

Block body primitive.

Source

type SignedTx: FullSignedTx

Signed version of the transaction type.

Source

type Receipt: Receipt

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 OpPrimitives

Implementors§