Struct ethcore::encoded::Header  [−][src]
pub struct Header(_);
Owning header view.
Methods
impl Header[src] 
impl Headerpub fn new(encoded: Vec<u8>) -> Self[src] 
pub fn new(encoded: Vec<u8>) -> SelfCreate 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.
pub fn decode(&self) -> Result<FullHeader, DecoderError>[src] 
pub fn decode(&self) -> Result<FullHeader, DecoderError>Upgrade this encoded view to a fully owned Header object.
pub fn view(&self) -> HeaderView[src] 
pub fn view(&self) -> HeaderViewGet a borrowed header view onto the data.
pub fn rlp(&self) -> Rlp[src] 
pub fn rlp(&self) -> RlpGet the rlp of the header.
pub fn into_inner(self) -> Vec<u8>[src] 
pub fn into_inner(self) -> Vec<u8>Consume the view and return the raw bytes.
impl Header[src] 
impl Headerpub fn hash(&self) -> H256[src] 
pub fn hash(&self) -> H256Returns the header hash.
pub fn parent_hash(&self) -> H256[src] 
pub fn parent_hash(&self) -> H256Returns the parent hash.
pub fn uncles_hash(&self) -> H256[src] 
pub fn uncles_hash(&self) -> H256Returns the uncles hash.
Returns the author.
pub fn state_root(&self) -> H256[src] 
pub fn state_root(&self) -> H256Returns the state root.
pub fn transactions_root(&self) -> H256[src] 
pub fn transactions_root(&self) -> H256Returns the transaction trie root.
pub fn receipts_root(&self) -> H256[src] 
pub fn receipts_root(&self) -> H256Returns the receipts trie root
pub fn log_bloom(&self) -> Bloom[src] 
pub fn log_bloom(&self) -> BloomReturns the block log bloom
pub fn difficulty(&self) -> U256[src] 
pub fn difficulty(&self) -> U256Difficulty of this block
pub fn number(&self) -> BlockNumber[src] 
pub fn number(&self) -> BlockNumberNumber of this block.
pub fn timestamp(&self) -> u64[src] 
pub fn timestamp(&self) -> u64Time this block was produced.
pub fn gas_limit(&self) -> U256[src] 
pub fn gas_limit(&self) -> U256Gas limit of this block.
pub fn gas_used(&self) -> U256[src] 
pub fn gas_used(&self) -> U256Total gas used in this block.
pub fn extra_data(&self) -> Vec<u8>[src] 
pub fn extra_data(&self) -> Vec<u8>Block extra data.
pub fn seal(&self) -> Vec<Vec<u8>>[src] 
pub fn seal(&self) -> Vec<Vec<u8>>Engine-specific seal fields.
Trait Implementations
impl Debug for Header[src] 
impl Debug for Headerfn fmt(&self, f: &mut Formatter) -> Result[src] 
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Clone for Header[src] 
impl Clone for Headerfn clone(&self) -> Header[src] 
fn clone(&self) -> HeaderReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src] 
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl PartialEq for Header[src] 
impl PartialEq for Headerfn eq(&self, other: &Header) -> bool[src] 
fn eq(&self, other: &Header) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Header) -> bool[src] 
fn ne(&self, other: &Header) -> boolThis method tests for !=.
impl Eq for Header[src] 
impl Eq for Headerimpl HeapSizeOf for Header[src] 
impl HeapSizeOf for Headerfn heap_size_of_children(&self) -> usize[src] 
fn heap_size_of_children(&self) -> usizeMeasure 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