Trait NodePrimitives
pub trait NodePrimitives:
Send
+ Sync
+ Unpin
+ Clone
+ Default
+ Debug
+ PartialEq
+ Eq
+ 'static {
type Block: Send + Sync + Unpin + Clone + Default + Debug + PartialEq + Eq + MaybeSerde + 'static;
type BlockHeader: Send + Sync + Unpin + Clone + Default + Debug + PartialEq + Eq + MaybeSerde + 'static;
type BlockBody: Send + Sync + Unpin + Clone + Default + Debug + PartialEq + Eq + MaybeSerde + 'static;
type SignedTx: Send + Sync + Unpin + Clone + Default + Debug + PartialEq + Eq + MaybeSerde + 'static;
type TxType: Send + Sync + Unpin + Clone + Default + Debug + PartialEq + Eq + 'static;
type Receipt: Send + Sync + Unpin + Clone + Default + Debug + PartialEq + Eq + MaybeSerde + 'static;
}
Expand description
Configures all the primitive types of the node.
Required Associated Types§
type Block: Send + Sync + Unpin + Clone + Default + Debug + PartialEq + Eq + MaybeSerde + 'static
type Block: Send + Sync + Unpin + Clone + Default + Debug + PartialEq + Eq + MaybeSerde + 'static
Block primitive.
type BlockHeader: Send + Sync + Unpin + Clone + Default + Debug + PartialEq + Eq + MaybeSerde + 'static
type BlockHeader: Send + Sync + Unpin + Clone + Default + Debug + PartialEq + Eq + MaybeSerde + 'static
Block header primitive.
type BlockBody: Send + Sync + Unpin + Clone + Default + Debug + PartialEq + Eq + MaybeSerde + 'static
type BlockBody: Send + Sync + Unpin + Clone + Default + Debug + PartialEq + Eq + MaybeSerde + 'static
Block body primitive.
type SignedTx: Send + Sync + Unpin + Clone + Default + Debug + PartialEq + Eq + MaybeSerde + 'static
type SignedTx: Send + Sync + Unpin + Clone + Default + Debug + PartialEq + Eq + MaybeSerde + 'static
Signed version of the transaction type.
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.