pub trait TransactionEnvMut: Transaction + Clone {
// Required methods
fn set_gas_limit(&mut self, gas_limit: u64);
fn set_access_list(&mut self, access_list: AccessList);
}Expand description
Transaction environment that can be adjusted in place, e.g. by RPC simulations that re-execute a prepared transaction with a different gas limit or access list.
Implementations update the transaction fields only: values derived when the environment was created (sender, recovered authorities, or other cached metadata) are preserved.
Required Methods§
Sourcefn set_gas_limit(&mut self, gas_limit: u64)
fn set_gas_limit(&mut self, gas_limit: u64)
Sets the gas limit.
Sourcefn set_access_list(&mut self, access_list: AccessList)
fn set_access_list(&mut self, access_list: AccessList)
Sets the access list.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".