pub struct NodeEnvironment {
pub base_fee: U256,
pub chain_id: ChainId,
pub gas_limit: U256,
pub gas_price: U256,
}
Expand description
The current block environment of the node.
Fields§
§base_fee: U256
Base fee of the current block
chain_id: ChainId
Chain id of the node.
gas_limit: U256
Configured block gas limit
gas_price: U256
Configured gas price
Trait Implementations§
source§impl Clone for NodeEnvironment
impl Clone for NodeEnvironment
source§fn clone(&self) -> NodeEnvironment
fn clone(&self) -> NodeEnvironment
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for NodeEnvironment
impl Debug for NodeEnvironment
source§impl<'de> Deserialize<'de> for NodeEnvironment
impl<'de> Deserialize<'de> for NodeEnvironment
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for NodeEnvironment
impl PartialEq for NodeEnvironment
source§impl Serialize for NodeEnvironment
impl Serialize for NodeEnvironment
impl Copy for NodeEnvironment
impl Eq for NodeEnvironment
impl StructuralPartialEq for NodeEnvironment
Auto Trait Implementations§
impl Freeze for NodeEnvironment
impl RefUnwindSafe for NodeEnvironment
impl Send for NodeEnvironment
impl Sync for NodeEnvironment
impl Unpin for NodeEnvironment
impl UnwindSafe for NodeEnvironment
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)