pub struct EnvInfo {
pub number: u64,
pub author: Address,
pub timestamp: u64,
pub difficulty: U256,
pub gas_limit: U256,
pub last_hashes: Arc<LastHashes>,
pub gas_used: U256,
}
Expand description
Information concerning the execution environment for a message-call/contract-creation.
Fields§
§number: u64
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§
Auto Trait Implementations§
impl Freeze for EnvInfo
impl RefUnwindSafe for EnvInfo
impl Send for EnvInfo
impl Sync for EnvInfo
impl Unpin for EnvInfo
impl UnwindSafe for EnvInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more