Trait TransactionEnvMut
pub trait TransactionEnvMut:
Transaction
+ Debug
+ Clone
+ Send
+ Sync
+ 'static {
// Required methods
fn set_gas_limit(&mut self, gas_limit: u64);
fn set_nonce(&mut self, nonce: u64);
fn set_access_list(&mut self, access_list: AccessList);
// Provided methods
fn with_gas_limit(self, gas_limit: u64) -> Self { ... }
fn with_nonce(self, nonce: u64) -> Self { ... }
fn with_access_list(self, access_list: AccessList) -> Self { ... }
}Available on crate feature
evm only.Expand description
Abstraction over mutable transaction environment.
Provides setters for common transaction fields, complementing
the read-only accessors on revm::context::Transaction.
Required Methods§
fn set_gas_limit(&mut self, gas_limit: u64)
fn set_gas_limit(&mut self, gas_limit: u64)
Sets the gas limit.
fn set_access_list(&mut self, access_list: AccessList)
fn set_access_list(&mut self, access_list: AccessList)
Sets the access list.
Provided Methods§
fn with_gas_limit(self, gas_limit: u64) -> Self
fn with_gas_limit(self, gas_limit: u64) -> Self
Sets the gas limit, returning self.
fn with_nonce(self, nonce: u64) -> Self
fn with_nonce(self, nonce: u64) -> Self
Sets the nonce, returning self.
fn with_access_list(self, access_list: AccessList) -> Self
fn with_access_list(self, access_list: AccessList) -> Self
Sets the access list, returning self.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.