Struct ethcore::encoded::Block [] [src]

pub struct Block(_);

Owning block view.

Methods

impl Block
[src]

Create a new owning block view. The raw bytes passed in must be an rlp-encoded block.

Create a new owning block view by concatenating the encoded header and body

Get a borrowed view of the whole block.

Get a borrowed view of the block header.

Decode to a full block.

Decode the header.

Clone the encoded header.

Get the rlp of this block.

Important traits for Vec<u8>

Consume the view and return the raw bytes.

impl Block
[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.

impl Block
[src]

Important traits for Vec<u8>

Get a vector of all transactions.

Number of transactions in the block.

Important traits for Vec<u8>

A view over each transaction in the block.

Important traits for Vec<u8>

The hash of each transaction in the block.

Important traits for Vec<u8>

Decode uncle headers.

Number of uncles.

Important traits for Vec<u8>

Borrowed view over each uncle.

Important traits for Vec<u8>

Hash of each uncle.

Trait Implementations

impl Debug for Block
[src]

Formats the value using the given formatter. Read more

impl Clone for Block
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for Block
[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 Block
[src]

impl HeapSizeOf for Block
[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 Block

impl Sync for Block