BlockLike

Trait BlockLike 

Source
pub trait BlockLike:
    EncodePayload
    + DecodePayload
    + Debug {
    // Required method
    fn block_point(&self) -> Result<Point, Box<dyn Error>>;
}
Expand description

A trait to deal with polymorphic payloads in the ChainSync protocol (WrappedHeader vs BlockBody)

Required Methods§

Source

fn block_point(&self) -> Result<Point, Box<dyn Error>>

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.

Implementors§