pub trait WeightBounds<RuntimeCall> {
    // Required methods
    fn weight(message: &mut Xcm<RuntimeCall>) -> Result<Weight, ()>;
    fn instr_weight(
        instruction: &Instruction<RuntimeCall>
    ) -> Result<Weight, ()>;
}
Expand description

Determine the weight of an XCM message.

Required Methods§

source

fn weight(message: &mut Xcm<RuntimeCall>) -> Result<Weight, ()>

Return the maximum amount of weight that an attempted execution of this message could consume.

source

fn instr_weight(instruction: &Instruction<RuntimeCall>) -> Result<Weight, ()>

Return the maximum amount of weight that an attempted execution of this instruction could consume.

Object Safety§

This trait is not object safe.

Implementors§