Struct vm::EnvInfo [−][src]
pub struct EnvInfo {
pub number: BlockNumber,
pub author: Address,
pub timestamp: u64,
pub difficulty: U256,
pub gas_limit: U256,
pub last_hashes: Arc<LastHashes>,
pub gas_used: U256,
}Information concerning the execution environment for a message-call/contract-creation.
Fields
number: BlockNumber
The block number.
The block author.
timestamp: u64
The block timestamp.
difficulty: U256
The block difficulty.
gas_limit: U256
The block gas limit.
last_hashes: Arc<LastHashes>
The last 256 block hashes.
gas_used: U256
The gas used.
Trait Implementations
impl Debug for EnvInfo[src]
impl Debug for EnvInfofn 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 EnvInfo[src]
impl Clone for EnvInfofn clone(&self) -> EnvInfo[src]
fn clone(&self) -> EnvInfoReturns 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)1.0.0
[src]Performs copy-assignment from source. Read more
impl Default for EnvInfo[src]
impl Default for EnvInfoimpl From<Env> for EnvInfo[src]
impl From<Env> for EnvInfo