pub trait GasMeter {
// Required method
fn maximum_dispatch_gas_used_at_most(command: &Command) -> u64;
}
Required Methods§
Sourcefn maximum_dispatch_gas_used_at_most(command: &Command) -> u64
fn maximum_dispatch_gas_used_at_most(command: &Command) -> u64
Measures the maximum amount of gas a command payload will require to dispatch, NOT including validation & verification.
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.