Struct ethcore::views::HeaderView
[−]
[src]
pub struct HeaderView<'a> { /* fields omitted */ }
View onto block header rlp.
Methods
impl<'a> HeaderView<'a>
[src]
impl<'a> HeaderView<'a>
pub fn new(rlp: ViewRlp<'a>) -> HeaderView<'a>
[src]
pub fn new(rlp: ViewRlp<'a>) -> HeaderView<'a>
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); }
pub fn hash(&self) -> H256
[src]
pub fn hash(&self) -> H256
Returns header hash.
pub fn rlp(&self) -> &ViewRlp<'a>
[src]
pub fn rlp(&self) -> &ViewRlp<'a>
Returns raw rlp.
pub fn parent_hash(&self) -> H256
[src]
pub fn parent_hash(&self) -> H256
Returns parent hash.
pub fn uncles_hash(&self) -> H256
[src]
pub fn uncles_hash(&self) -> H256
Returns uncles hash.
Returns author.
pub fn state_root(&self) -> H256
[src]
pub fn state_root(&self) -> H256
Returns state root.
pub fn transactions_root(&self) -> H256
[src]
pub fn transactions_root(&self) -> H256
Returns transactions root.
pub fn receipts_root(&self) -> H256
[src]
pub fn receipts_root(&self) -> H256
Returns block receipts root.
pub fn log_bloom(&self) -> Bloom
[src]
pub fn log_bloom(&self) -> Bloom
Returns block log bloom.
pub fn difficulty(&self) -> U256
[src]
pub fn difficulty(&self) -> U256
Returns block difficulty.
pub fn number(&self) -> BlockNumber
[src]
pub fn number(&self) -> BlockNumber
Returns block number.
pub fn gas_limit(&self) -> U256
[src]
pub fn gas_limit(&self) -> U256
Returns block gas limit.
pub fn gas_used(&self) -> U256
[src]
pub fn gas_used(&self) -> U256
Returns block gas used.
pub fn timestamp(&self) -> u64
[src]
pub fn timestamp(&self) -> u64
Returns timestamp.
pub fn extra_data(&self) -> Bytes
[src]
pub fn extra_data(&self) -> Bytes
Returns block extra data.
pub fn seal(&self) -> Vec<Bytes>
[src]
pub fn seal(&self) -> Vec<Bytes>
Returns a vector of post-RLP-encoded seal fields.
pub fn decode_seal(&self) -> Result<Vec<Bytes>, DecoderError>
[src]
pub fn decode_seal(&self) -> Result<Vec<Bytes>, DecoderError>
Returns a vector of seal fields (RLP-decoded).
Trait Implementations
Auto Trait Implementations
impl<'a> Send for HeaderView<'a>
impl<'a> Send for HeaderView<'a>
impl<'a> !Sync for HeaderView<'a>
impl<'a> !Sync for HeaderView<'a>