Struct ethcore::views::HeaderView [] [src]

pub struct HeaderView<'a> { /* fields omitted */ }

View onto block header rlp.

Methods

impl<'a> HeaderView<'a>
[src]

Creates a new Header view from valid ViewRlp Use the view! macro to create this view in order to capture debugging info.

Example

#[macro_use]
extern crate ethcore;
 
use ethcore::views::{HeaderView};
 
fn main() {
let bytes : &[u8] = &[];
let tx_view = view!(HeaderView, bytes);
}

Returns header hash.

Returns raw rlp.

Returns parent hash.

Returns uncles hash.

Returns author.

Returns state root.

Returns transactions root.

Returns block receipts root.

Returns block log bloom.

Returns block difficulty.

Returns block number.

Returns block gas limit.

Returns block gas used.

Returns timestamp.

Returns block extra data.

Important traits for Vec<u8>

Returns a vector of post-RLP-encoded seal fields.

Returns a vector of seal fields (RLP-decoded).

Trait Implementations

Auto Trait Implementations

impl<'a> Send for HeaderView<'a>

impl<'a> !Sync for HeaderView<'a>