Trait Block
pub trait Block:
Send
+ Sync
+ Unpin
+ Clone
+ Default
+ Debug
+ PartialEq
+ Eq
+ InMemorySize
+ MaybeSerde {
type Header: BlockHeader + 'static;
type Body: Send + Sync + Unpin + 'static;
// Required methods
fn header(&self) -> &Self::Header;
fn body(&self) -> &Self::Body;
}
Expand description
Abstraction of block data type.
Required Associated Types§
type Header: BlockHeader + 'static
type Header: BlockHeader + 'static
Header part of the block.
Required Methods§
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.