referrerpolicy=no-referrer-when-downgrade
snowbridge_outbound_queue_primitives::v2::message

Trait GasMeter

Source
pub trait GasMeter {
    // Required method
    fn maximum_dispatch_gas_used_at_most(command: &Command) -> u64;
}

Required Methods§

Source

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.

Implementations on Foreign Types§

Source§

impl GasMeter for ()

Implementors§