pub trait HasHeader {
    type Header: Header;

    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

The block header type.

Required Methods

Retrieves the block’s header.

Implementors