Struct ethcore::encoded::Header[][src]

pub struct Header(_);

Owning header view.

Methods

impl Header
[src]

Create a new owning header view. Expects the data to be an RLP-encoded header -- any other case will likely lead to panics further down the line.

Upgrade this encoded view to a fully owned Header object.

Get a borrowed header view onto the data.

Get the rlp of the header.

Important traits for Vec<u8>

Consume the view and return the raw bytes.

impl Header
[src]

Returns the header hash.

Returns the parent hash.

Returns the uncles hash.

Returns the author.

Returns the state root.

Returns the transaction trie root.

Returns the receipts trie root

Returns the block log bloom

Difficulty of this block

Number of this block.

Time this block was produced.

Gas limit of this block.

Total gas used in this block.

Important traits for Vec<u8>

Block extra data.

Important traits for Vec<u8>

Engine-specific seal fields.

Trait Implementations

impl Debug for Header
[src]

Formats the value using the given formatter. Read more

impl Clone for Header
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for Header
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for Header
[src]

impl HeapSizeOf for Header
[src]

Measure the size of any heap-allocated structures that hang off this value, but not the space taken up by the value itself (i.e. what size_of:: measures, more or less); that space is handled by the implementation of HeapSizeOf for Box below. Read more

Auto Trait Implementations

impl Send for Header

impl Sync for Header