pub trait HasHeader {
    type Header: Header;

    // Required method
    fn header(&self) -> Self::Header;
}
Expand description

Access to the block header.

If featured by the blockchain, the header can be used to transmit block’s metadata via a network protocol or in other uses where the full content of the block is too bulky and not necessary.

Required Associated Types§

source

type Header: Header

The block header type.

Required Methods§

source

fn header(&self) -> Self::Header

Retrieves the block’s header.

Implementors§