Struct evm_state::types::BlockHeader[][src]

pub struct BlockHeader {
    pub parent_hash: H256,
    pub state_root: H256,
    pub native_chain_hash: H256,
    pub transactions: Vec<H256>,
    pub transactions_root: H256,
    pub receipts_root: H256,
    pub logs_bloom: Bloom,
    pub block_number: u64,
    pub gas_limit: u64,
    pub gas_used: u64,
    pub timestamp: u64,
    pub native_chain_slot: u64,
    pub version: BlockVersion,
}

Fields

parent_hash: H256state_root: H256native_chain_hash: H256transactions: Vec<H256>transactions_root: H256receipts_root: H256logs_bloom: Bloomblock_number: u64gas_limit: u64gas_used: u64timestamp: u64native_chain_slot: u64version: BlockVersion

Implementations

impl BlockHeader[src]

pub fn new<'a>(
    parent_hash: H256,
    gas_limit: u64,
    state_root: H256,
    block_number: u64,
    gas_used: u64,
    timestamp: u64,
    native_chain_slot: u64,
    native_chain_hash: H256,
    processed_transactions: impl Iterator<Item = &'a (H256, TransactionReceipt)>,
    version: BlockVersion
) -> BlockHeader
[src]

pub fn hash(&self) -> H256[src]

pub fn rlp_append_legacy(&self, s: &mut RlpStream)[src]

pub fn rlp_append_newer(&self, s: &mut RlpStream)[src]

Trait Implementations

impl Clone for BlockHeader[src]

impl Debug for BlockHeader[src]

impl<'de> Deserialize<'de> for BlockHeader[src]

impl Encodable for BlockHeader[src]

impl Eq for BlockHeader[src]

impl From<BlockHeader> for BlockHeader[src]

impl From<BlockHeader> for BlockHeader[src]

impl PartialEq<BlockHeader> for BlockHeader[src]

impl Serialize for BlockHeader[src]

impl StructuralEq for BlockHeader[src]

impl StructuralPartialEq for BlockHeader[src]

Auto Trait Implementations

impl RefUnwindSafe for BlockHeader

impl Send for BlockHeader

impl Sync for BlockHeader

impl Unpin for BlockHeader

impl UnwindSafe for BlockHeader

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> MaybeDebug for T where
    T: Debug
[src]

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]