pub trait Header: Clone + Codec + Debug + Send + Sync + 'static {
    type Unverified: UnverifiedHeader;

    // Required methods
    fn id(&self) -> BlockId;
    fn parent_id(&self) -> Option<BlockId>;
    fn into_unverified(self) -> Self::Unverified;
}
Expand description

The header of a block, containing information about the parent relation.

Required Associated Types§

Required Methods§

source

fn id(&self) -> BlockId

The identifier of this block.

source

fn parent_id(&self) -> Option<BlockId>

The identifier of this block’s parent.

source

fn into_unverified(self) -> Self::Unverified

Return an unverified version of this, for sending over the network.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Header for Header

§

type Unverified = Header<u32, BlakeTwo256>

source§

fn id(&self) -> BlockId

source§

fn parent_id(&self) -> Option<BlockId>

source§

fn into_unverified(self) -> Self::Unverified

Implementors§